"Matthias Kestenholz" [off-list ref] writes:
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
You shouldn't need to say "smudge = cat"; if it does not work
without that line you found a bug, so please report.