aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang E. Sanyer <WolfgangESanyer@gmail.com>2021-09-19 22:55:56 -0400
committerZac Medico <zmedico@gentoo.org>2021-09-19 20:57:59 -0700
commit58c1b364419ffef8aeb1cb383a2d433314cacd09 (patch)
treea35ac47aa138042af810b4f0a0d9c8c2548a5ff6
parentAdd github action to check black formatting (diff)
downloadportage-58c1b364.tar.gz
portage-58c1b364.tar.bz2
portage-58c1b364.zip
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@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--.gitignorerevs2
-rw-r--r--README.md7
2 files changed, 9 insertions, 0 deletions
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
============