Re: [BUG] attribute "eol" with "crlf"
- From
Adam Borowski <kilobyte@angband.pl>
- Date
- Dec 16, 2011, 20:09 UTC
- Message-ID
- <20111216200955.GA8499@angband.pl>
- In-Reply-To
- <CAN0XMOJFCwORt_VaddgeeCNp3S-nm8DxYDPDyPCsVngRhuEP6A@mail.gmail.com>
On Fri, Dec 16, 2011 at 07:28:22PM +0100, Ralf Thielow wrote:
> > What behavior would you have expected? > > I've expected that git doesn't change the line endings > because it's already CRLF.
And how exactly can it change the file back the way it was? s/\n/\r\n/g is roundtrippable, s/\r?\n/\r\n/g is not.
-- 1KB // Yo momma uses IPv4!