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?
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.
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.