git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0aa38db) | patch
Add non-destructive modes to pgindent
2023年1月23日 12:00:06 +0000 (07:00 -0500)
2023年1月23日 12:09:51 +0000 (07:09 -0500)
commit b90f0b57474eac3980be8146f2e45f73a05c994f
Add non-destructive modes to pgindent

This adds two modes of running pgindent, neither of which results in
any changes being made to the source code. The --show-diff option shows
what changes would have been made, and the --silent-diff option just
exits with a status of 2 if any changes would be made. The second of
these is intended for scripting use in places such as git hooks.

Along the way some code cleanup is done, and a --help option is also
added.

Reviewed by Tom Lane

Discussion: https://postgr.es/m/c9c9fa6d-6de6-48c2-4f8b-0fbeef026439@dunslane.net
src/tools/pgindent/pgindent diff | blob | blame | history
src/tools/pgindent/pgindent.man diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /