[Openvpn-devel] Add file to ignore reformatting changes

Message ID 20200707121615.15736-1-arne@rfc2549.org
State Rejected
Headers show
  • [Openvpn-devel] Add file to ignore reformatting changes
Related show

Commit Message

Arne Schwabe July 7, 2020, 12:16 p.m.
This allows git blame to ignore reformatting changes and instead
shows the previous commit that changed the line.

To avoid manually building the list of commits this commit
adds a file with a list of reformatting commits. I might have
missed a few but this should be a good start. To use the file

   git blame --ignore-revs-file=.git-blame-ignore-revs file

or to automatically always use the file

   git config blame.ignoreRevsFile .git-blame-ignore-revs

Naming the file .git-blame-ignore-revs is a convention.

Some more details in this random blog post:


Signed-off-by: Arne Schwabe <arne@rfc2549.org>
 .git-blame-ignore-revs                        | 29 +++++++++++++++++++
 .../managent-demo/management-demo-server.py   |  0
 contrib/ovpnkeys.py                           |  0
 3 files changed, 29 insertions(+)
 create mode 100644 .git-blame-ignore-revs
 create mode 100644 contrib/managent-demo/management-demo-server.py
 create mode 100644 contrib/ovpnkeys.py

diff --git a/contrib/managent-demo/management-demo-server.py b/contrib/managent-demo/management-demo-server.py
new file mode 100644
index 00000000..e69de29b
diff --git a/contrib/ovpnkeys.py b/contrib/ovpnkeys.py
new file mode 100644
index 00000000..e69de29b


diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 00000000..3cc811cf
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,29 @@ 
+# Uncrustify the tests/unit_tests/ part of our tree. 
+# Another round of uncrustify code cleanup.
+# networking_sitnl.c: uncrustify file
+# Uncrustify tapctl and openvpnmsica
+# tun.c: uncrustify
+# networking_sitnl.c: uncrustify file
+# uncrustify openvpn sources
+# More broadly enforce Allman style and braces-around-conditionals
+# Merge 'reformatting' branch into master
+# The Great Reformatting - first phase