Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c681ab

Browse files
committed
Exclude snowball/libstemmer/ files from the set processed by pgindent.
There's not much point in prettifying machine-generated code, and itseems best to keep these files exactly like upstream anyway. Also addsome notes about why various files are excluded.
1 parent1c36de3 commit5c681ab

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)

[8]ページ先頭

©2009-2025 Movatter.jp