Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[git] Line Endings *sigh*

Hi list,

We seem to have some trouble using our migrated (SVN -> Git) CDO Project repository with EGit. Sometimes clean files seem to be dirty in EGit while git status at the command line reports a clean repo.

Our developers are mostly on Windows (I'm on Mac, though). We have all set autocrlf to true. A recent analysis revealed that we have
2,929 Java source files with Unix line endings and
980 Java source files with DOS line endings

Now our basic idea would be to do a history clean once and for all using
git filter-branch -tree-filter 'convert_whole_tree_to_unix.sh' -- --all

(and let all developers clone from the server again ...)

Does this seem reasonable?
Will that make our problems go away?
Does the autocrlf setting of the master repo have any effect?
Does the autocrly setting of the repo which is tree-filtered as above have any effect (would I better switch of autocrlf during the tree-filter operation?)

Cheers,
Stefan



Back to the top