From b6c6d74420a69b7858926e44f40a4a4f45542cc0 Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Sat, 29 Jul 2023 17:12:38 -0500 Subject: [PATCH] chore: add `.git-blame-ignore-revs` file More info: https://github.com/NixOS/nixpkgs/blob/master/.git-blame-ignore-revs --- .git-blame-ignore-revs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..7197b479 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,29 @@ +# 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 + + +# chore: introduce `black` formatting +86b36e271ebde5ac4f30bf83c4e7ee42ba5af9ac