Re: [PATCH] Add gitattributes file making whitespace checking pickier
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 11, 2008, 03:34 UTC
- Message-ID
- <7vk5lcb1zq.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.LNX.1.00.0802101724170.13593@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
Show 8 quoted lines
> On Sun, 10 Feb 2008, Junio C Hamano wrote: > ... >> True, how about this instead? > > That makes things more clear, although I'd still like a t/.gitattributes > that meant that, regardless of the project's policies in general, t/ files > may care about whitespace, so we don't have to worry about that in future > changes to the top level .gitattributes.
Ok, that's sensible.
This is what I'll apply. We can tighten and/or loosen per type of the contents as we discover glitches.
--
.gitattributes | 2 ++ Documentation/.gitattributes | 1 + t/.gitattributes | 1 + 3 files changed, 4 insertions(+), 0 deletions(-) create mode 100644 .gitattributes create mode 100644 Documentation/.gitattributes create mode 100644 t/.gitattributes
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6b9c715 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +* whitespace=!indent,trail,space +*.[ch] whitespace diff --git a/Documentation/.gitattributes b/Documentation/.gitattributes new file mode 100644 index 0000000..ddb0301 --- /dev/null +++ b/Documentation/.gitattributes @@ -0,0 +1 @@ +*.txt whitespace diff --git a/t/.gitattributes b/t/.gitattributes new file mode 100644 index 0000000..562b12e --- /dev/null +++ b/t/.gitattributes @@ -0,0 +1 @@ +* -whitespace