]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
git: ignore reformatting commit for git-blame (after v9.1.0829)
authorChristian Brabandt <cb@256bit.org>
Sat, 2 Nov 2024 15:29:55 +0000 (16:29 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 2 Nov 2024 15:29:55 +0000 (16:29 +0100)
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 <cb@256bit.org>
.git-blame-ignore-revs [new file with mode: 0644]

diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644 (file)
index 0000000..f859027
--- /dev/null
@@ -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