git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git improvement for line feed processing: LF versus CR-LF
@ 2014-09-08  8:55 Francis ANDRE
  2014-09-08  9:29 ` Torsten Bögershausen
  0 siblings, 1 reply; 2+ messages in thread
From: Francis ANDRE @ 2014-09-08  8:55 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Git improvement for line feed processing: LF versus CR-LF
  2014-09-08  8:55 Git improvement for line feed processing: LF versus CR-LF Francis ANDRE
@ 2014-09-08  9:29 ` Torsten Bögershausen
  0 siblings, 0 replies; 2+ messages in thread
From: Torsten Bögershausen @ 2014-09-08  9:29 UTC (permalink / raw)
  To: Francis ANDRE, git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-08  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-08  8:55 Git improvement for line feed processing: LF versus CR-LF Francis ANDRE
2014-09-08  9:29 ` Torsten Bögershausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).