gitattributes

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

gitattributes

From: Matthias Kestenholz <hidden>
Date: 2016-06-15 22:43:06

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

Re: gitattributes

From: Alex Riesen <hidden>
Date: 2016-06-15 22:43:06

On 4/24/07, Matthias Kestenholz [off-list ref] 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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help