]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Define a built-in attribute macro "binary".
authorJunio C Hamano <junkio@cox.net>
Sat, 14 Apr 2007 15:56:35 +0000 (08:56 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 15 Apr 2007 22:49:41 +0000 (15:49 -0700)
For binary files we would want to disable textual diff
generation and automatic crlf conversion.

Signed-off-by: Junio C Hamano <junkio@cox.net>
attr.c

diff --git a/attr.c b/attr.c
index a306144204f33cf6efec91ee38d581b59a78c5dd..410bca613cd83cb233889e50d0424f9e589c1ea0 100644 (file)
--- 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,
 };