diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..06fb71d9 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,10 @@ +# Bulk-formatting commits, ignored so `git blame` reports the author who wrote +# a line rather than whoever last reformatted it. GitHub's web blame applies +# this automatically; locally it needs opting in once: +# +# git config blame.ignoreRevsFile .git-blame-ignore-revs +# +# Only commits with no behaviour change belong here. + +# chore: reformat under rustfmt style edition 2024 +ad63139576f77767299ac1c0f4bca5b52fe80442 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8ae0606a..4230fc34 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -189,6 +189,13 @@ git pull origin develop git checkout -b feat/scope-your-clear-description ``` +Opt in once per clone so `git blame` skips the bulk-formatting commits listed in +`.git-blame-ignore-revs` and reports whoever actually wrote each line: + +```bash +git config blame.ignoreRevsFile .git-blame-ignore-revs +``` + ### 2. Make Your Changes **Respect the existing folder structure.** Place new files where similar files already live. Do not reorganize without prior discussion.