<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/.gitattributes, branch v2.4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-01-06T20:22:25Z</updated>
<entry>
<title>.gitattributes: detect 8-space indent in shell scripts</title>
<updated>2010-01-06T20:22:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-06T20:22:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2df3299d860feb55c1caa8487238851c0f4622aa'/>
<id>urn:sha1:2df3299d860feb55c1caa8487238851c0f4622aa</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>.gitattributes: CR at the end of the line is an error</title>
<updated>2009-06-21T17:42:37Z</updated>
<author>
<name>Nanako Shiraishi</name>
<email>nanako3@lavabit.com</email>
</author>
<published>2009-06-19T10:42:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e2f6331a14213f01a6e68e71ed63c77323a3e759'/>
<id>urn:sha1:e2f6331a14213f01a6e68e71ed63c77323a3e759</id>
<content type='text'>
When a CR is accidentally added at the end of a C source file in the git
project tree, "git diff --check" doesn't detect it as an error.

    $ echo abQ | tr Q '\015' &gt;&gt;fast-import.c
    $ git diff --check

I think this is because the "whitespace" attribute is set to *.[ch] files
without specifying what kind of errors are caught. It makes git "notice
all types of errors" (as described in the documentation), but I think it
is incorrectly setting cr-at-eol, too, and hides this error.

Signed-off-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Define the project whitespace policy</title>
<updated>2008-02-11T21:23:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-02-11T03:34:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14f9e128d38f809947d34979a59ee524e350ac6e'/>
<id>urn:sha1:14f9e128d38f809947d34979a59ee524e350ac6e</id>
<content type='text'>
This establishes what the "bad" whitespaces are for this
project.

The rules are:

 - Unless otherwise specified, indent with SP that could be
   replaced with HT are not "bad".  But SP before HT in the
   indent is "bad", and trailing whitespaces are "bad".

 - For C source files, initial indent by SP that can be replaced
   with HT is also "bad".

 - Test scripts in t/ and test vectors in its subdirectories can
   contain anything, so we make it unrestricted for now.

Anything "bad" will be shown in WHITESPACE error indicator in
diff output, and "apply --whitespace=warn" will warn about it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
