Skip to content

Commit 5c681ab

Browse files
committed
Exclude snowball/libstemmer/ files from the set processed by pgindent.
There's not much point in prettifying machine-generated code, and it seems best to keep these files exactly like upstream anyway. Also add some notes about why various files are excluded.
1 parent 1c36de3 commit 5c681ab

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/tools/pgindent/README

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ symbols.
1212
From the top directory, run:
1313

1414
find . -name '*.[ch]' -type f -print |
15-
egrep -v '/s_lock.h|src/interfaces/ecpg/test/expected/' |
15+
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
1616
xargs -n100 pgindent
1717

1818
We have standardized on NetBSD's indent. We have fixed a few bugs which
@@ -24,3 +24,15 @@ These bugs become pretty major when you are doing >500k lines of code.
2424
If you don't believe me, take a directory and make a copy. Run pgindent
2525
on the copy using GNU indent, and do a diff -r. You will see what I
2626
mean. GNU indent does some things better, but mangles too.
27+
28+
Notes about excluded files:
29+
30+
src/include/storage/s_lock.h is excluded because it contains assembly code
31+
that pgindent tends to mess up.
32+
33+
src/interfaces/ecpg/test/expected/ is excluded to avoid breaking the ecpg
34+
regression tests.
35+
36+
src/include/snowball/libstemmer/ and src/backend/snowball/libstemmer/
37+
are excluded because those files are imported from an external project,
38+
not maintained locally, and are machine-generated anyway.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy