commit:     58c1b364419ffef8aeb1cb383a2d433314cacd09
Author:     Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail <DOT> com>
AuthorDate: Mon Sep 20 02:55:56 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Sep 20 03:57:59 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=58c1b364

Added rev ignore file, to make git blame more usable

Closes: https://github.com/gentoo/portage/pull/745
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail.com>
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .gitignorerevs | 2 ++
 README.md      | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/.gitignorerevs b/.gitignorerevs
new file mode 100644
index 000000000..9381d12ad
--- /dev/null
+++ b/.gitignorerevs
@@ -0,0 +1,2 @@
+# Run entire repository through black. Also, change tabs to spaces
+1bb64ff4520354688a82f4b267b028db913798f4

diff --git a/README.md b/README.md
index c176e8a3f..e75b430c6 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,13 @@ editor integration. Something like this:
 black --check --diff .
 ```
 
+To ignore commit 1bb64ff452 - which is a massive commit that simply formatted
+the code base using black - you can do the following:
+
+```sh
+git config blame.ignoreRevsFile .gitignorerevs
+```
+
 Dependencies
 ============
 

Reply via email to