summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-14 08:56:35 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-15 15:49:41 -0700
commitfc2d07b05fb691f98b3a55c1499fae6fb25a7d31 (patch)
tree5dda94d4eefab9e07a20f6366668a3b5904e9934 /attr.c
parentf48fd68887a03756658a46486a5dd1301c5a655f (diff)
downloadgit-fc2d07b05fb691f98b3a55c1499fae6fb25a7d31.tar.gz
Define a built-in attribute macro "binary".
For binary files we would want to disable textual diff generation and automatic crlf conversion. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'attr.c')
-rw-r--r--attr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/attr.c b/attr.c
index a306144204..410bca613c 100644
--- a/attr.c
+++ b/attr.c
@@ -194,6 +194,7 @@ static void free_attr_elem(struct attr_stack *e)
}
static const char *builtin_attr[] = {
+ "[attr]binary !diff !crlf",
NULL,
};