# Git improvement for line feed processing: LF versus CR-LF

2 messages from 2014-09-08 to 2014-09-08. Participants: Francis ANDRE, Torsten Bögershausen.
Thread: https://gitlist.dev/t/37512

## Francis ANDRE, 2014-09-08 08:55

Subject: Git improvement for line feed processing: LF versus CR-LF
Message-ID: <540D6EEB.2040101@orange.fr>
URL: https://gitlist.dev/e/540D6EEB.2040101%40orange.fr

```
Hi

I am using git-gui on a project hosted  at GitHub and the project 
requirement is to commit only Unix ending with LF lines as show below

When contributing to POCO, please adhere to our coding style guide

All text file line endings in the repository must be Unix-style (LF). 
This includes Visual Studio project and solution files (.sln, .vcproj, 
.vcxproj, .vcxproj.filters).

But git-gui translates states:
warning: LF will be replaced by CRLF in file.txt. The file will have its 
original line endings in your working directory.

Could you add a option to git-gui to specify to translate or not the end 
of line of the cloned repository so that my fixes be accepted by the 
owner of the repository.

Thank

```

## Torsten Bögershausen, 2014-09-08 09:29

Subject: Re: Git improvement for line feed processing: LF versus CR-LF
Message-ID: <540D7705.4000405@web.de>
URL: https://gitlist.dev/e/540D7705.4000405%40web.de
In-Reply-To: <540D6EEB.2040101@orange.fr>

```
On 09/08/2014 10:55 AM, Francis ANDRE wrote:
> Hi
> []
> All text file line endings in the repository must be Unix-style (LF). 
> This includes Visual Studio project and solution files (.sln, .vcproj, 
> .vcxproj, .vcxproj.filters).
>
> But git-gui translates states:
> warning: LF will be replaced by CRLF in file.txt. The file will have 
> its original line endings in your working directory.
>
> Could you add a option to git-gui to specify to translate or not the 
> end of line of the cloned repository so that my fixes be accepted by 
> the owner of the repository.
>
> Thanks
Unless I'm completely wrong, such an option already exists, please see

http://git-htmldocs.googlecode.com/git/gitattributes.html

```
