summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-22 22:48:39 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-24 00:12:44 -0700
commit448c3ef144b2f528bb6dc50153ac13cc2abbc3c4 (patch)
tree36481d3da41e8cb6b37c4da1e03ac126dd20de62 /diff.h
parented1795fcc5f2aa3f105630429bcbed49c50053fa (diff)
downloadgit-448c3ef144b2f528bb6dc50153ac13cc2abbc3c4.tar.gz
diff.c: second war on whitespace.
This adds DIFF_WHITESPACE color class (default = reverse red) to colored diff output to let you catch common whitespace errors. - trailing whitespaces at the end of line - a space followed by a tab in the indent Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index b60a02e627..3435fe7b3f 100644
--- a/diff.h
+++ b/diff.h
@@ -86,6 +86,7 @@ enum color_diff {
DIFF_FILE_OLD = 4,
DIFF_FILE_NEW = 5,
DIFF_COMMIT = 6,
+ DIFF_WHITESPACE = 7,
};
const char *diff_get_color(int diff_use_color, enum color_diff ix);