1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

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
This commit is contained in:
Peter Geoghegan
2021-06-22 09:06:32 -07:00
parent bafad2c5b2
commit 8e638845ff
3 changed files with 228 additions and 0 deletions

View File

@ -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)

View File

@ -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.
---------------------------------------------------------------------------