diff options
author | Bert Wesarg <bert.wesarg@googlemail.com> | 2009-11-27 07:55:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-28 10:05:44 -0800 |
commit | 89cb73a19ac94d15babf77af490fa5db78908234 (patch) | |
tree | a5cb2dd04e1cfe72868cb475a12bc50d02f78d8e /diff.h | |
parent | 06a4755270b86a2af20a5c1f0d785311472b5223 (diff) | |
download | git-89cb73a19ac94d15babf77af490fa5db78908234.tar.gz |
Give the hunk comment its own color
Inspired by the coloring of quilt.
Introduce a separate color and paint the hunk comment part, i.e. the name
of the function, in a separate color "diff.func" (defaults to plain).
Whitespace between hunk header and hunk comment is printed in plain color.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -130,6 +130,7 @@ enum color_diff { DIFF_FILE_NEW = 5, DIFF_COMMIT = 6, DIFF_WHITESPACE = 7, + DIFF_FUNCINFO = 8, }; const char *diff_get_color(int diff_use_color, enum color_diff ix); #define diff_get_color_opt(o, ix) \ |