author | Jeff King <peff@peff.net> | |
Sun, 26 Oct 2008 04:49:35 +0000 (00:49 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 26 Oct 2008 21:09:48 +0000 (14:09 -0700) | ||
commit | 4f672ad6c77bfe73cc5dd4b240fd42303d101d2a | |
tree | e3d9e6567ef56d9d6db05bb3dadf05a62b67c4fe | tree | snapshot |
parent | 2675773af893ae81f9b09f18c1f2ec86ca2158e7 | commit | diff |
wt-status: load diff ui config
When "git status -v" shows a diff, we did not respect the
user's usual diff preferences at all. Loading just
git_diff_basic_config would give us things like rename
limits and diff drivers. But it makes even more sense to
load git_diff_ui_config, which gives us colorization if the
user has requested it.
Note that we need to take special care to cancel
colorization when writing to the commit template file, as
described in the code comments.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When "git status -v" shows a diff, we did not respect the
user's usual diff preferences at all. Loading just
git_diff_basic_config would give us things like rename
limits and diff drivers. But it makes even more sense to
load git_diff_ui_config, which gives us colorization if the
user has requested it.
Note that we need to take special care to cancel
colorization when writing to the commit template file, as
described in the code comments.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7502-commit.sh | diff | blob | history | |
wt-status.c | diff | blob | history |