Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- May 7, 2010, 20:17 UTC
- Message-ID
- <alpine.LFD.2.00.1005071306190.901@i5.linux-foundation.org>
- In-Reply-To
- <alpine.LFD.2.00.1005071303040.901@i5.linux-foundation.org>
On Fri, 7 May 2010, Linus Torvalds wrote:
> > Now, the thing is, we can go for even simpler syntax still, by just making > that ".gitconfig: core.autocrlf=true" entirely unnecessary.
Exact semantics I'd suggest for 'core.autocrlf':
Setting path in .gitattributes path _not_ in .gitattributes
======= ====================== ===========================
- not set at all attribute value no crlf
- "off"/"false" no crlf no crlf
- "on" attribute value autocrlf
- "input" attribute "input" autocrlf "input"Which is different from what we do now for the "not set at all" case, in that it still takes the .gitattributes value for those cases if a path matches.
We could add a few core.autocrlf entries, like "force" (to force output to be CRLF even on a platform where it isn't the default).
Linus