]> git.neil.brown.name Git - git.git/commitdiff
sha1dc: ignore indent-with-non-tab whitespace violations
authorJeff King <peff@peff.net>
Tue, 6 Jun 2017 19:01:11 +0000 (15:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jun 2017 00:25:07 +0000 (09:25 +0900)
The upstream sha1dc code indents some lines with spaces.
While this doesn't match Git's coding guidelines, it's better
to leave this imported code untouched than to try to make it
match our style. However, we can use .gitattributes to tell
"diff --check" and "git am" not to bother us about it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1dc/.gitattributes [new file with mode: 0644]

diff --git a/sha1dc/.gitattributes b/sha1dc/.gitattributes
new file mode 100644 (file)
index 0000000..da53f40
--- /dev/null
@@ -0,0 +1 @@
+* whitespace=-indent-with-non-tab