]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add .git-blame-ignore-revs with reformat commits
authorArne Schwabe <arne@rfc2549.org>
Thu, 4 Jun 2020 23:53:38 +0000 (01:53 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 10 Jun 2020 11:54:46 +0000 (13:54 +0200)
commite0b49cb95286a62a4e615470c6d3fe841b433314
treebcae35a6ea9a57557f60ad95c6c45e081ef57563
parent9002885bd8a10d9375dc4f0baf2df05395c86f1a
Add .git-blame-ignore-revs with reformat commits

This allows git blame to ignore reformatting changes and instead
to show 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
use:

   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:

https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame

Patch V2: Remove merge commit of the great formatting, add small
          reminder how to use the feature at the top of the file

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20200604235338.11728-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19967.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.git-blame-ignore-revs [new file with mode: 0644]