Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » CRLF for Windows files
CRLF for Windows files [message #720281] Tue, 30 August 2011 10:09 Go to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
We migrated our CVS repository to Git. Now I get all the former CVS
ASCII files with wrong line delimiters (LF) when I clone the repository
on my Windows machine.

What do I need to do to get valid line delimiters for my former CVS
ASCII files?

Dani
Re: CRLF for Windows files [message #720309 is a reply to message #720281] Tue, 30 August 2011 11:00 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 18
Registered: July 2009
Junior Member
Have you set the git config parameter "core.autocrlf"? If you set it to false
git will not modify the line endings when you checkout or add.
Re: CRLF for Windows files [message #720311 is a reply to message #720309] Tue, 30 August 2011 11:07 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 30.08.2011 13:00, Christian Halstrick wrote:
> Have you set the git config parameter "core.autocrlf"? If you set it
> to false
> git will not modify the line endings when you checkout or add.
I thought this is not yet supported by JGIT/EGit
(https://bugs.eclipse.org/301775).

Also, how would EGit determine which files are text/ASCII? I could not
find a property or preference that shows this or would allow to set this
on a file.

Dani
Re: CRLF for Windows files [message #720532 is a reply to message #720311] Tue, 30 August 2011 19:11 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Daniel Megert skrev 2011-08-30 13.07:
> On 30.08.2011 13:00, Christian Halstrick wrote:
>> Have you set the git config parameter "core.autocrlf"? If you set it
>> to false
>> git will not modify the line endings when you checkout or add.
> I thought this is not yet supported by JGIT/EGit
> (https://bugs.eclipse.org/301775).
>
> Also, how would EGit determine which files are text/ASCII? I could not
> find a property or preference that shows this or would allow to set this
> on a file.

It is partially supported, but apparently not completely.

JGit looks for a nul byte among the first 8k characters in order to
make its guess. In particular the .gitattributes are not yet
supported.

-- robin
Previous Topic:EGit keyboard handlling exception
Next Topic:How can I get more information about why a pull failed
Goto Forum:
  


Current Time: Fri Apr 19 12:13:41 GMT 2024

Powered by FUDForum. Page generated in 0.02316 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top