forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit382ceff
committed
Phase 3 of pgindent updates.
Don't move parenthesized lines to the left, even if that means theyflow past the right margin.By default, BSD indent lines up statement continuation lines that arewithin parentheses so that they start just to the right of the precedingleft parenthesis. However, traditionally, if that resulted in thecontinuation line extending to the right of the desired right margin,then indent would push it left just far enough to not overrun the margin,if it could do so without making the continuation line start to the left ofthe current statement indent. That makes for a weird mix of indentationsunless one has been completely rigid about never violating the 80-columnlimit.This behavior has been pretty universally panned by Postgres developers.Hence, disable it with indent's new -lpl switch, so that parenthesizedlines are always lined up with the preceding left paren.This patch is much less interesting than the first round of indentchanges, but also bulkier, so I thought it best to separate the effects.Discussion:https://postgr.es/m/E1dAmxK-0006EE-1r@gemulon.postgresql.orgDiscussion:https://postgr.es/m/30527.1495162840@sss.pgh.pa.us1 parentc7b8998 commit382ceff
File tree
568 files changed
+4747
-4745
lines changed- contrib
- adminpack
- amcheck
- auth_delay
- auto_explain
- bloom
- btree_gin
- btree_gist
- cube
- dblink
- earthdistance
- file_fdw
- hstore
- intarray
- isn
- ltree
- oid2name
- pageinspect
- passwordcheck
- pg_prewarm
- pg_standby
- pg_stat_statements
- pg_visibility
- pgcrypto
- pgrowlocks
- pgstattuple
- postgres_fdw
- seg
- sepgsql
- spi
- sslinfo
- tablefunc
- tcn
- test_decoding
- unaccent
- xml2
- src
- backend
- access
- brin
- common
- gin
- gist
- hash
- heap
- index
- nbtree
- rmgrdesc
- spgist
- transam
- bootstrap
- catalog
- commands
- executor
- lib
- libpq
- main
- nodes
- optimizer
- path
- plan
- prep
- util
- parser
- port
- dynloader
- win32
- postmaster
- replication
- libpqwalreceiver
- logical
- pgoutput
- rewrite
- statistics
- storage
- buffer
- file
- ipc
- large_object
- lmgr
- page
- smgr
- tcop
- tsearch
- utils
- adt
- cache
- error
- fmgr
- hash
- init
- mb
- conversion_procs
- utf8_and_euc2004
- utf8_and_sjis2004
- misc
- mmgr
- sort
- time
- bin
- initdb
- pg_basebackup
- pg_ctl
- pg_dump
- pg_resetwal
- pg_rewind
- pg_test_timing
- pg_upgrade
- pg_waldump
- pgbench
- pgevent
- psql
- scripts
- common
- fe_utils
- include
- access
- catalog
- commands
- executor
- foreign
- lib
- mb
- optimizer
- parser
- replication
- rewrite
- storage
- tcop
- utils
- interfaces
- ecpg
- ecpglib
- pgtypeslib
- preproc
- libpq
- pl
- plperl
- plpgsql/src
- plpython
- tcl
- port
- test
- isolation
- modules
- test_shm_mq
- worker_spi
- regress
- timezone
- tools
- findoidjoins
- pgindent
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
568 files changed
+4747
-4745
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
|
Lines changed: 31 additions & 31 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
243 |
| - | |
244 |
| - | |
| 243 | + | |
| 244 | + | |
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
| |||
411 | 411 |
| |
412 | 412 |
| |
413 | 413 |
| |
414 |
| - | |
| 414 | + | |
415 | 415 |
| |
416 | 416 |
| |
417 | 417 |
| |
418 | 418 |
| |
419 |
| - | |
| 419 | + | |
420 | 420 |
| |
421 | 421 |
| |
422 | 422 |
| |
| |||
433 | 433 |
| |
434 | 434 |
| |
435 | 435 |
| |
436 |
| - | |
437 |
| - | |
| 436 | + | |
| 437 | + | |
438 | 438 |
| |
439 | 439 |
| |
440 | 440 |
| |
441 | 441 |
| |
442 |
| - | |
443 |
| - | |
| 442 | + | |
| 443 | + | |
444 | 444 |
| |
445 | 445 |
| |
446 | 446 |
| |
| |||
488 | 488 |
| |
489 | 489 |
| |
490 | 490 |
| |
491 |
| - | |
| 491 | + | |
492 | 492 |
| |
493 | 493 |
| |
494 | 494 |
| |
| |||
497 | 497 |
| |
498 | 498 |
| |
499 | 499 |
| |
500 |
| - | |
| 500 | + | |
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
| |||
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
511 |
| - | |
512 |
| - | |
| 511 | + | |
| 512 | + | |
513 | 513 |
| |
514 | 514 |
| |
515 | 515 |
| |
| |||
665 | 665 |
| |
666 | 666 |
| |
667 | 667 |
| |
668 |
| - | |
669 |
| - | |
670 |
| - | |
671 |
| - | |
672 |
| - | |
673 |
| - | |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
679 | 679 |
| |
680 | 680 |
| |
681 | 681 |
| |
| |||
824 | 824 |
| |
825 | 825 |
| |
826 | 826 |
| |
827 |
| - | |
| 827 | + | |
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
| |||
1053 | 1053 |
| |
1054 | 1054 |
| |
1055 | 1055 |
| |
1056 |
| - | |
| 1056 | + | |
1057 | 1057 |
| |
1058 | 1058 |
| |
1059 | 1059 |
| |
| |||
1228 | 1228 |
| |
1229 | 1229 |
| |
1230 | 1230 |
| |
1231 |
| - | |
1232 |
| - | |
| 1231 | + | |
| 1232 | + | |
1233 | 1233 |
| |
1234 | 1234 |
| |
1235 | 1235 |
| |
1236 | 1236 |
| |
1237 | 1237 |
| |
1238 |
| - | |
1239 |
| - | |
| 1238 | + | |
| 1239 | + | |
1240 | 1240 |
| |
1241 | 1241 |
| |
1242 | 1242 |
| |
1243 | 1243 |
| |
1244 |
| - | |
1245 |
| - | |
| 1244 | + | |
| 1245 | + | |
1246 | 1246 |
| |
1247 | 1247 |
| |
1248 | 1248 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
78 |
| - | |
| 77 | + | |
| 78 | + | |
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
| |||
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
123 |
| - | |
| 123 | + | |
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
115 |
| - | |
| 114 | + | |
| 115 | + | |
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
| 87 | + | |
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
| 111 | + | |
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
118 |
| - | |
119 |
| - | |
| 118 | + | |
| 119 | + | |
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
207 |
| - | |
| 206 | + | |
| 207 | + | |
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
|
Lines changed: 9 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
91 |
| - | |
| 90 | + | |
| 91 | + | |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
213 |
| - | |
| 213 | + | |
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
219 |
| - | |
220 |
| - | |
| 219 | + | |
| 220 | + | |
221 | 221 |
| |
222 | 222 |
| |
223 | 223 |
| |
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
230 |
| - | |
231 |
| - | |
| 230 | + | |
| 231 | + | |
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
| |||
242 | 242 |
| |
243 | 243 |
| |
244 | 244 |
| |
245 |
| - | |
246 |
| - | |
| 245 | + | |
| 246 | + | |
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
172 |
| - | |
173 |
| - | |
| 172 | + | |
| 173 | + | |
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
199 |
| - | |
200 |
| - | |
| 199 | + | |
| 200 | + | |
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
207 |
| - | |
| 206 | + | |
| 207 | + | |
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
136 |
| - | |
| 136 | + | |
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
| |||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
168 |
| - | |
169 |
| - | |
| 168 | + | |
| 169 | + | |
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
205 |
| - | |
206 |
| - | |
| 205 | + | |
| 206 | + | |
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
207 |
| - | |
| 206 | + | |
| 207 | + | |
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
207 |
| - | |
| 206 | + | |
| 207 | + | |
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
285 | 285 |
| |
286 | 286 |
| |
287 | 287 |
| |
288 |
| - | |
289 |
| - | |
| 288 | + | |
| 289 | + | |
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
|
0 commit comments
Comments
(0)