When nothing to git-commit, honor the git-status color setting.
commit09b0d9dde03df1432df06dcfcc20d8abecccb860
authorBrian Hetro <whee@smaertness.net>
Sun, 26 Aug 2007 18:35:26 +0000 (26 14:35 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Aug 2007 21:01:47 +0000 (26 14:01 -0700)
tree3d85f89c331676127c524ec21ec0789f838a2d51
parent67aca456a3cfa9ab8420a6e171d8eee7b0ad2209
When nothing to git-commit, honor the git-status color setting.

Instead of disabling color all of the time during a git-commit, allow
the user's config preference in the situation where there is nothing
to commit.  In this situation, the status is printed to the terminal
and not sent to COMMIT_EDITMSG, so honoring the status color setting
is expected.

Signed-off-by: Brian Hetro <whee@smaertness.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-commit.sh