Re: Bug with automated processing of git status results
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Jun 30, 2017, 09:22 UTC
- Message-ID
- <70c9a162-ac2f-c347-d13b-f24ac24d1133@web.de>
- In-Reply-To
- <vpqr2y1u9j2.fsf@anie.imag.fr>
On 30/06/17 11:09, Matthieu Moy wrote:
Show 9 quoted lines
> Сергей Шестаков <s_shestakov@playrix.com> writes: > >> I understand that we can turn off core.safecrlf, but it's >> inconvinient. > > Note that you can do that without actually changing the config file: > > git -c core.safecrlf=false status ... >
Beside that, I would recommend to set up a .gitattributes file:
$ echo "*.xml text eol=lf" >>.gitattributes $ git add .gitattributes $ git commit -m "xml files are text with LF line endings"