summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorPeter Geoghegan2021-06-22 16:06:32 +0000
committerPeter Geoghegan2021-06-22 16:06:32 +0000
commit8e638845ff6bb255ad1dea15831089a234535391 (patch)
treed87560b0f5be07d848abb15716adaa81db997434 /src/tools
parentbafad2c5b261a1449bed60ebac9e7918ebcc42b4 (diff)
Add list of ignorable pgindent commits for git-blame.
Add a .git-blame-ignore-revs file with a list of pgindent, pgperlyidy, and reformat-dat-files commit hashes. Postgres hackers that configure git to use the ignore file will get git-blame output that avoids attributing line changes to the ignored indent commits. This makes git-blame output much easier to work with in practice. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAH2-Wz=cVh3GHTP6SdLU-Gnmt2zRdF8vZkcrFdSzXQ=WhbWm9Q@mail.gmail.com
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/RELEASE_CHANGES4
-rw-r--r--src/tools/pgindent/README5
2 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/RELEASE_CHANGES b/src/tools/RELEASE_CHANGES
index ec45ae4c908..5cf2a4dda3c 100644
--- a/src/tools/RELEASE_CHANGES
+++ b/src/tools/RELEASE_CHANGES
@@ -72,6 +72,10 @@ but there may be reasons to do them at other times as well.
pgindent, pgperltidy, and "make reformat-dat-files"
(see src/tools/pgindent/README)
+* Update .git-blame-ignore-revs. It should contain all of the newly
+ created code beautification commits. Make sure that you use
+ full-length commit hashes for this.
+
* Renumber any manually-assigned OIDs between 8000 and 9999
to lower numbers, using renumber_oids.pl (see notes in bki.sgml)
diff --git a/src/tools/pgindent/README b/src/tools/pgindent/README
index d36f5088279..74412d29f8a 100644
--- a/src/tools/pgindent/README
+++ b/src/tools/pgindent/README
@@ -80,6 +80,11 @@ VALIDATION:
When you're done, "git commit" everything including the typedefs.list file
you used.
+4) Add the newly created commits to the .git-blame-ignore-revs file so
+ that "git blame" ignores the commits (for anybody that has opted-in
+ to using the ignore file).
+
+Another "git commit" will be required for your ignore file changes.
---------------------------------------------------------------------------