mirror of
https://github.com/eza-community/eza
synced 2024-10-14 20:03:50 +00:00
fix(git): ignore refs for blame
Refs: #405 Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
0e06409b07
commit
7363efdee4
28
.git-blame-ignore-revs
Normal file
28
.git-blame-ignore-revs
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# This file contains a list of commits that are not likely what you
|
||||||
|
# are looking for in a blame, such as mass reformatting or renaming.
|
||||||
|
# You can set this file as a default ignore file for blame by running
|
||||||
|
# the following command.
|
||||||
|
#
|
||||||
|
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
|
||||||
|
#
|
||||||
|
# To temporarily not use this file add
|
||||||
|
# --ignore-revs-file=""
|
||||||
|
# to your blame command.
|
||||||
|
#
|
||||||
|
# The ignoreRevsFile can't be set globally due to blame failing if the file isn't present.
|
||||||
|
# To not have to set the option in every repository it is needed in,
|
||||||
|
# save the following script in your path with the name "git-bblame"
|
||||||
|
# now you can run
|
||||||
|
# $ git bblame $FILE
|
||||||
|
# to use the .git-blame-ignore-revs file if it is present.
|
||||||
|
#
|
||||||
|
# #!/usr/bin/env bash
|
||||||
|
# repo_root=$(git rev-parse --show-toplevel)
|
||||||
|
# if [[ -e $repo_root/.git-blame-ignore-revs ]]; then
|
||||||
|
# git blame --ignore-revs-file="$repo_root/.git-blame-ignore-revs" $@
|
||||||
|
# else
|
||||||
|
# git blame $@
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# treewide rustfmt https://github.com/eza-community/eza/pull/405
|
||||||
|
0e06409b07f060e3afe1c099c4c54e6504847ee0
|
Loading…
Reference in a new issue