diff options
| author | user <user@clank> | 2026-08-17 14:22:38 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-17 14:22:38 +0200 |
| commit | dcf8f33873bd70e72d6114a59a71ec98255a7055 (patch) | |
| tree | 3785133c97be7e24e6f4a57fbf4ca17d30dc0ac8 | |
| parent | sl0ppty: clang-format the tree (diff) | |
| download | slosh-dcf8f33873bd70e72d6114a59a71ec98255a7055.tar.gz slosh-dcf8f33873bd70e72d6114a59a71ec98255a7055.tar.xz slosh-dcf8f33873bd70e72d6114a59a71ec98255a7055.zip | |
sl0ppty: let git blame walk past the reformat
One line, naming the commit that formatted the tree and nothing else, so
`git blame` attributes those 1,843 lines to whoever last had something to say
rather than to the formatter.
Not wired up by `make hooks`: `blame.ignoreRevsFile` changes what a person
reads, and setting somebody's git config for them is a different kind of thing
from installing a hook they asked for. The file says the one command.
| -rw-r--r-- | .git-blame-ignore-revs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..2b490f1 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,9 @@ +# Commits that changed formatting and nothing else. Tell git to walk past them: +# +# git config blame.ignoreRevsFile .git-blame-ignore-revs +# +# (`make hooks` does not set this -- it is a reading preference, not a rule, and +# it belongs to whoever is doing the reading.) + +# sl0ppty: clang-format the tree +ec91ccffe631ae34b111bf6161fd0e3c487f684c |
