[PATCH v2 3/3] Add .git-blame-ignore-revs file as suggested on mailing list
list at johnericson.me
list at johnericson.me
Wed Jul 7 00:10:35 AEST 2021
From: John Ericson <git at JohnEricson.me>
This allows indentation fixes to not wreck `git blame` so badly.
Committer note: Fix commit hash after applying prefix patch, or this
will not work.
---
.git-blame-ignore-revs | 12 ++++++++++++
1 file changed, 12 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..05e87075
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,12 @@
+# Since version 2.23 (released in August 2019), git-blame has a feature
+# to ignore or bypass certain commits.
+#
+# 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
+
+# Re-indent code after the previous change
+0c31352463c505092d197bce3186f3ec715c4271
--
2.31.1
More information about the openssh-unix-dev
mailing list