Skip to content

Commit 06b05f3

Browse files
committed
[all] add a list of commits to ignore with git blame
It is mentioned in CONTRIBUTING file to explain how to use it.
1 parent 040f922 commit 06b05f3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,20 @@ You will need Perltidy installed, with at least the version 20211029.
3030
To install the git pre-commit hook:
3131

3232
ln -s ../../misc/dev/pre-commit-tidy-hook .git/hooks/pre-commit
33+
34+
## Ignore revisions when using `git blame`
35+
36+
Big bulk changes, like the application of Perltidy to OAR's code, can make
37+
`git blame` useless.
38+
From git 2.23, it is now possible to provide a list of revisions to ignore.
39+
We keep one in the file `misc/dev/git-blame-ignore-revs`.
40+
41+
This list can be used by adding `--ignore-revs-file misc/dev/git-blame-ignore-revs`
42+
to the command line:
43+
44+
git blame --ignore-revs-file misc/dev/git-blame-ignore-revs sources/core/…
45+
46+
Or by configuring `blame.ignoreRevsFile` with `git config` to avoid extra
47+
typing each time:
48+
49+
git config blame.ignoreRevsFile misc/dev/git-blame-ignore-revs

misc/dev/git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
53d9c3488d647c5fa5632e6799ddf9b751d88303
2+
0a5d8e41f80458fb3ffc95fa5f6b38942ad7fb71

0 commit comments

Comments
 (0)