-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Spurious Carriage Return breaks diff tool #1930
Comments
Could you run |
ls-files before adding the suprious carriage return: And after: |
Thanks. The solution would be to use a .gitattributes file: or better: |
Even though there are carriage returns in the files normally, a naked one looks like a random binary byte and makes the file binary... That makes perfect sense actually. Thanks. |
Setup
defaults?
Details
Tested and reproduced using both Git Bash and CMD.
Minimal, Complete, and Verifiable example
this will help us understand the issue.
The diff should show that a single line change where a carriage return (^M) was added in the middle of the file.
The diff tool thinks that the entire file changed.
The text was updated successfully, but these errors were encountered: