forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb90f0b5
committed
Add non-destructive modes to pgindent
This adds two modes of running pgindent, neither of which results inany changes being made to the source code. The --show-diff option showswhat changes would have been made, and the --silent-diff option justexits with a status of 2 if any changes would be made. The second ofthese is intended for scripting use in places such as git hooks.Along the way some code cleanup is done, and a --help option is alsoadded.Reviewed by Tom LaneDiscussion:https://postgr.es/m/c9c9fa6d-6de6-48c2-4f8b-0fbeef026439@dunslane.net1 parent0aa38db commitb90f0b5
2 files changed
+79
-26
lines changedLines changed: 72 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 |
| |
26 | 30 |
| |
| 31 | + | |
27 | 32 |
| |
28 | 33 |
| |
29 | 34 |
| |
30 | 35 |
| |
31 | 36 |
| |
32 |
| - | |
33 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
34 | 46 |
| |
35 | 47 |
| |
36 | 48 |
| |
| |||
229 | 241 |
| |
230 | 242 |
| |
231 | 243 |
| |
232 |
| - | |
233 |
| - | |
| 244 | + | |
234 | 245 |
| |
235 | 246 |
| |
236 | 247 |
| |
| |||
280 | 291 |
| |
281 | 292 |
| |
282 | 293 |
| |
283 |
| - | |
284 | 294 |
| |
285 | 295 |
| |
286 |
| - | |
287 |
| - | |
288 |
| - | |
| 296 | + | |
289 | 297 |
| |
290 |
| - | |
291 |
| - | |
292 |
| - | |
293 |
| - | |
294 |
| - | |
| 298 | + | |
| 299 | + | |
295 | 300 |
| |
296 |
| - | |
297 |
| - | |
| 301 | + | |
298 | 302 |
| |
299 |
| - | |
300 |
| - | |
| 303 | + | |
301 | 304 |
| |
302 |
| - | |
303 | 305 |
| |
304 | 306 |
| |
305 |
| - | |
306 |
| - | |
307 |
| - | |
308 |
| - | |
309 |
| - | |
| 307 | + | |
| 308 | + | |
310 | 309 |
| |
311 | 310 |
| |
312 | 311 |
| |
| |||
377 | 376 |
| |
378 | 377 |
| |
379 | 378 |
| |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
380 | 407 |
| |
381 | 408 |
| |
382 | 409 |
| |
| |||
404 | 431 |
| |
405 | 432 |
| |
406 | 433 |
| |
| 434 | + | |
| 435 | + | |
407 | 436 |
| |
408 | 437 |
| |
409 | 438 |
| |
| |||
427 | 456 |
| |
428 | 457 |
| |
429 | 458 |
| |
430 |
| - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
431 | 476 |
| |
432 |
| - | |
433 | 477 |
| |
434 | 478 |
| |
435 | 479 |
| |
| 480 | + | |
| 481 | + |
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 |
| |
37 | 44 |
| |
38 | 45 |
| |
|
0 commit comments
Comments
(0)