.git-blame-ignore-revs 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. # This file contains a list of commits that are not likely what you
  2. # are looking for in a blame, such as mass reformatting or renaming.
  3. # You can set this file as a default ignore file for blame by running
  4. # the following command.
  5. #
  6. # $ git config blame.ignoreRevsFile .git-blame-ignore-revs
  7. #
  8. # To temporarily not use this file add
  9. # --ignore-revs-file=""
  10. # to your blame command.
  11. #
  12. # The ignoreRevsFile can't be set globally due to blame failing if the file isn't present.
  13. # To not have to set the option in every repository it is needed in,
  14. # save the following script in your path with the name "git-bblame"
  15. # now you can run
  16. # $ git bblame $FILE
  17. # to use the .git-blame-ignore-revs file if it is present.
  18. #
  19. # #!/usr/bin/env bash
  20. # repo_root=$(git rev-parse --show-toplevel)
  21. # if [[ -e $repo_root/.git-blame-ignore-revs ]]; then
  22. # git blame --ignore-revs-file="$repo_root/.git-blame-ignore-revs" $@
  23. # else
  24. # git blame $@
  25. # fi
  26. # treewide rustfmt https://github.com/eza-community/eza/pull/405
  27. 0e06409b07f060e3afe1c099c4c54e6504847ee0
  28. # initial powertests https://github.com/eza-community/eza/pull/644/commits
  29. 2273e29bc006baeb76795ae40c7b8b76f61c6f26
  30. 4f949fc9bbb1e387b489ad841af56e7be448bef3