Commit: git: ignore reformatting commit for git-blame (after v9.1.0829)

2 views
Skip to first unread message

Christian Brabandt

unread,
Nov 2, 2024, 11:45:10 AM11/2/24
to vim...@googlegroups.com
git: ignore reformatting commit for git-blame (after v9.1.0829)

Commit: https://github.com/vim/vim/commit/88542445871d882b2a0e79410774797a73fe9e60
Author: Christian Brabandt <c...@256bit.org>
Date: Sat Nov 2 16:29:55 2024 +0100

git: ignore reformatting commit for git-blame (after v9.1.0829)

See:
https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile

Enable this using the following command in your copy:
git config blame.ignoreRevsFile .git-blame-ignore-revs

Github should pick it up automatically

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 000000000..f859027d6
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,9 @@
+# When making commits that are strictly formatting/style changes, add the
+# commit hash here, so git blame can ignore the change. See docs for more details:
+#
+# https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile
+#
+# Run this command to always ignore formatting commits in git blame
+# git config blame.ignoreRevsFile .git-blame-ignore-revs
+#
+8ce738de3fd7192fa6274730594305cde780074c # expand tabs to spaces in sound.c
Reply all
Reply to author
Forward
0 new messages