aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorChris Webb <chris@arachsys.com>2010-04-03 00:37:08 +0100
committerJunio C Hamano <gitster@pobox.com>2010-04-02 21:08:04 -0700
commit3e3ec2abe0f275dda285e989224e4c3da19e7adb (patch)
treee6447c8a837c3ac93204cef99b0eef66214fedc2 /cache.h
parent727c3718a51605a2b93a7b2ac57e0175decc122a (diff)
downloadgit-3e3ec2abe0f275dda285e989224e4c3da19e7adb.tar.gz
git-3e3ec2abe0f275dda285e989224e4c3da19e7adb.tar.xz
whitespace: add tab-in-indent error class
Some projects and languages use coding style where no tab character is used to indent the lines. This only adds support and documentation for "apply --whitespace=warn" and "diff --check"; later patches add "apply --whitespace=fix" and tests. Signed-off-by: Chris Webb <chris@arachsys.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 6dcb100a6..030af327f 100644
--- a/cache.h
+++ b/cache.h
@@ -1040,6 +1040,7 @@ void shift_tree_by(const unsigned char *, const unsigned char *, unsigned char *
#define WS_INDENT_WITH_NON_TAB 04
#define WS_CR_AT_EOL 010
#define WS_BLANK_AT_EOF 020
+#define WS_TAB_IN_INDENT 040
#define WS_TRAILING_SPACE (WS_BLANK_AT_EOL|WS_BLANK_AT_EOF)
#define WS_DEFAULT_RULE (WS_TRAILING_SPACE|WS_SPACE_BEFORE_TAB)
extern unsigned whitespace_rule_cfg;