git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitattributes

From
Junio C Hamano <junkio@cox.net>
Date
Apr 24, 2007, 21:40 UTC
Message-ID
<7v4pn55u4d.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<81b0412b0704240918t70bfb3bt5f0e6e85028be5e6@mail.gmail.com>
"Alex Riesen" <raa.lkml@gmail.com> writes:
Show 15 quoted lines
> On 4/24/07, Matthias Kestenholz <lists@spinlock.ch> wrote:
>> The .gitattributes system together with input/output filters has already
>> proven exceptionally useful for me. I've got some co-workers which
>> do not seem to care about CRLF line endings or whitespace damage.
>>
>> core.autocrlf = input
>>
>> and
>>
>> [filter "whitespace"]
>>   clean = stripspace
>>   smudge = cat
>>
>
> Why didn't --ignore-space-at-eol, -b and -w work for you?

It should. What Matthias would want more is probably to have others to have the "clean" side of the filter in their working repository.

Previous: Alex RiesenNext: Matthias Kestenholz
Message 3 of 5 in “gitattributes”
  1. Matthias KestenholzApr 24, 2007
  2. Alex RiesenApr 24, 2007
  3. Junio C HamanoApr 24, 2007
  4. Matthias KestenholzApr 24, 2007
  5. Junio C HamanoApr 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.