Re: [PATCH] git add -e: Explicitly specify that patch should have no color

2013-07-19 Thread Matthieu Moy
Andrew Wong writes: > After this commit: > 4c7f1819b3c142ace98269a556bc929c80e7c9fd make color.ui default to 'auto' > the patch file for 'git add -e' receives all the color codes. This is because > diffopt.use_color defaults to -1, which causes want_color to now return > 'auto'. Oops, inde

[PATCH] git add -e: Explicitly specify that patch should have no color

2013-07-18 Thread Andrew Wong
After this commit: 4c7f1819b3c142ace98269a556bc929c80e7c9fd make color.ui default to 'auto' the patch file for 'git add -e' receives all the color codes. This is because diffopt.use_color defaults to -1, which causes want_color to now return 'auto'. By explicitly setting use_color to 0, we ca