Re: run pgindent on a regular basis / scripted manner
David Rowley <dgrowleyml@gmail.com>
On Wed, 18 Oct 2023 at 01:47, Robert Haas <robertmhaas@gmail.com> wrote: > On Sat, Aug 12, 2023 at 5:53 PM Peter Geoghegan <pg@bowt.ie> wrote: > > This policy isn't working. > > +1. I think this is more annoying than the status quo ante. Maybe there are two camps of committers here; ones who care about committing correctly indented code and ones who do not. I don't mean that in a bad way, but if a committer just does not care about correctly pgindented code then he/she likely didn't suffer enough pain from how things used to be... having to unindent all the unrelated indent fixes that were committed since the last pgindent run I personally found slow/annoying/error-prone. What I do now seems significantly easier. Assuming it's just 1 commit, just: perl src/tools/pgindent/pgindent --commit HEAD git diff # manual check to see if everything looks sane. git commit -a --fixup HEAD git rebase -i HEAD~2 If we were to go back to how it was before, then why should I go to the trouble of unindenting all the unrelated indents from code changed by other committers since the last pgindent run when those committers are not bothering to and making my job harder each time they commit incorrectly indented code. How many of the committers who have broken koel are repeat offenders? What is their opinion on this? Did they just forget once or do they hate the process and want to go back? I'm personally very grateful for all the work that was done to improve pgindent and set out the new process. I'd really rather not go back to how things were. I agree that it's not nice to add yet another way of breaking the buildfarm and even more so when the committer did make check-world before committing. We have --enable-tap-tests, we could have --enable-indent-checks and have pgindent check the code is correctly indented during make check-world. Then just not have --enable-indent-checks in CI. I think many of us have scripts we use instead of typing out all the configure options we want. It's likely pretty easy to add --enable-indent-checks to those. David
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix comment from commit 22655aa231.
- 01529c704008 17.0 cited
-
Add a few recent commits to .git-blame-ignore-revs.
- 0df7d1da40e3 17.0 landed
-
Pre-beta2 mechanical code beautification.
- b334612b8aee 16.0 landed
-
Pre-beta mechanical code beautification.
- 0245f8db36f3 16.0 landed
-
Make agreed-on updates in perltidy options.
- df6b19fbbc20 16.0 landed
-
Remove obsolete pgindent options --code-base and --build
- b16259b3c189 16.0 landed
-
Integrate pg_bsd_indent into our build/test infrastructure.
- 156c049beed9 16.0 landed
-
Sync pg_bsd_indent's copyright notices with Postgres practice.
- b44e5fced3e5 16.0 landed
-
Import pg_bsd_indent sources.
- 4e831f4cee14 16.0 landed
-
pgindent: filter files for the --commit option
- dab07e8c6896 16.0 landed
-
pgindent: more ways to find files to indent
- 068a243b7771 16.0 landed
-
Fix pgindent --show-diff option.
- 62e1e28bf769 16.0 cited
-
Add non-destructive modes to pgindent
- b90f0b57474e 16.0 landed
-
Initial pgindent run with pg_bsd_indent version 2.0.
- e3860ffa4dd0 10.0 cited