summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-14 15:56:35 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-15 22:49:41 (GMT)
commitfc2d07b05fb691f98b3a55c1499fae6fb25a7d31 (patch)
tree5dda94d4eefab9e07a20f6366668a3b5904e9934 /attr.c
parentf48fd68887a03756658a46486a5dd1301c5a655f (diff)
downloadgit-fc2d07b05fb691f98b3a55c1499fae6fb25a7d31.zip
git-fc2d07b05fb691f98b3a55c1499fae6fb25a7d31.tar.gz
git-fc2d07b05fb691f98b3a55c1499fae6fb25a7d31.tar.bz2
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 a306144..410bca6 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,
};