|
@AndresFreundTec | |||||
|
Random useful developer discovery for postgres development: git's diff.orderFile option. Allows to change the order in which different files appear in diffs.
|
||||||
|
||||||
|
Andres Freund (Tech)
@AndresFreundTec
|
5. lis |
|
I've now set that to
src/include/*
src/common/*
src/port/*
config/*
src/makefiles/*
src/template/*
src/backend/*
src/fe_utils/*
src/bin/*
src/interfaces/libpq/*
src/pl/*
contrib/*
src/interfaces/*
doc/*
src/test/*
allowing me to see the "most crucial" (for me) things first.
|
||
|
|
||
|
Andres Freund (Tech)
@AndresFreundTec
|
5. lis |
|
I only wish it allowed negative patterns to move individual directories (e.g. tests) to the end, without having to list everything else.
|
||
|
|
||
|
Pavlo Golub
@PavloGolub
|
9. lis |
|
Wow, cool! Thanks for the tip. How are you using it? Put that into ~/.gitconfig or per postgres folder config file? Can you show your structure?
|
||
|
|
||
|
Andres Freund (Tech)
@AndresFreundTec
|
9. lis |
|
For now in .gitconfig, I'll see whether it annoys me with other projects...
|
||
|
|
||
|
Magnus Hagander
@magnushagander
|
5. lis |
|
That is indeed super useful. Thanks for the tip!
|
||
|
|
||