svn2git
svn2git copied to clipboard
How to handle end-of-lines normalization
We are facing issues after migration when users add .gitattributes
file to keep LF for shell scripts when working on Windows platform.
"Perfect world" expectation would be that svn-all-fast-export inspected svn:eol-style Subversion property and applies ".gitattributes" for each imported commit.
What is the recommended way to get all text files with LF EOL in repository itself, so that Git attributes can be used seamlessly after migration when committing from different EOL-style platforms?
Why add directive to "repository" create, so that an initial commit is created with expected ".gitattributes" content, which would allow LFS support too?
Good question.
At this point, my workaround is to try lint-history:
lint-history dos2unix
It's pretty fast on a huge repo anyway.