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

gitattributes

From
MKMatthias Kestenholz <lists@spinlock.ch>
Date
Apr 24, 2007, 11:36 UTC
Message-ID
<1f6632e50704240436l4a81d8c9s1bbf95a7892db68c@mail.gmail.com>

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
and

*.php filter=whitespace *.tpl filter=whitespace

saves me minutes every day when I review changes made by others, because otherwise the diffs are getting illegible (Sometimes, the whole file is shown twice only because the line-ending changed)

It would be really great if these features were included in the next release.

Thanks, Matthias

Next: Alex Riesen
Message 1 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.