Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle end-of-lines normalization #67

Open
ymartin59 opened this issue Feb 14, 2019 · 2 comments
Open

How to handle end-of-lines normalization #67

ymartin59 opened this issue Feb 14, 2019 · 2 comments
Labels

Comments

@ymartin59
Copy link

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?

@ymartin59
Copy link
Author

Why add directive to "repository" create, so that an initial commit is created with expected ".gitattributes" content, which would allow LFS support too?

@huyz
Copy link

huyz commented Apr 23, 2024

Good question.

At this point, my workaround is to try lint-history:

lint-history dos2unix

It's pretty fast on a huge repo anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants