[lxc-devel] [pylxd/master] Add a .git-blame-ignore-revs

d0ugal on Github lxc-bot at linuxcontainers.org
Fri Dec 4 15:17:21 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 400 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201204/932fd771/attachment.bin>
-------------- next part --------------
From 720a9a73ab8d8ca9c06e43e6c6a8430e69b19a62 Mon Sep 17 00:00:00 2001
From: Dougal Matthews <dougal at dougalmatthews.com>
Date: Fri, 4 Dec 2020 15:10:22 +0000
Subject: [PATCH] Add a .git-blame-ignore-revs

This will allow git to ignore the reformatting changes, so `git blame`
keeps the original author.
---
 .git-blame-ignore-revs | 15 +++++++++++++++
 1 file changed, 15 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..3f66a0c7
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,15 @@
+# This file contains all the revisions that are only formatting changes and
+# should usually be ignored when running 'git blame'.
+#
+# Make use of it on a single file by running:
+#
+#   git blame --ignore-revs-file .git-blame-ignore-revs FILE
+#
+# ... or for global setting (most useful) configure git:
+#
+#   git config blame.ignoreRevsFile .git-blame-ignore-revs
+#
+# Note that git 2.23 or newer is required for this to work
+
+# Blacken all the code
+f76cf13e23603717caec8af611e1a1889bca9eb4


More information about the lxc-devel mailing list