Re: [PATCH 1/1] convert: tighten the safe autocrlf handling

2017-11-24 Thread Junio C Hamano
tbo...@web.de writes: > From: Torsten Bögershausen > > When a text file had been commited with CRLF and the file is commited > again, the CRLF are kept if .gitattributs has "text=auto". > This is done by analyzing the content of the blob stored in the index: > If a '\r' is found, Git assumes that

Re: [PATCH 1/1] convert: tighten the safe autocrlf handling

2017-11-24 Thread Torsten Bögershausen
On Fri, Nov 24, 2017 at 12:24:48PM -0500, Eric Sunshine wrote: > On Fri, Nov 24, 2017 at 11:14 AM, wrote: > > When a text file had been commited with CRLF and the file is commited > > again, the CRLF are kept if .gitattributs has "text=auto". > > This is done by analyzing the content of the blob

Re: [PATCH 1/1] convert: tighten the safe autocrlf handling

2017-11-24 Thread Eric Sunshine
On Fri, Nov 24, 2017 at 11:14 AM, wrote: > When a text file had been commited with CRLF and the file is commited > again, the CRLF are kept if .gitattributs has "text=auto". > This is done by analyzing the content of the blob stored in the index: > If a '\r' is found, Git assumes that the blob wa

[PATCH 1/1] convert: tighten the safe autocrlf handling

2017-11-24 Thread tboegi
From: Torsten Bögershausen When a text file had been commited with CRLF and the file is commited again, the CRLF are kept if .gitattributs has "text=auto". This is done by analyzing the content of the blob stored in the index: If a '\r' is found, Git assumes that the blob was commited with CRLF.