Open mjuergens-cg opened 1 month ago
What steps will reproduce the problem? Steps to reproduce the behavior:
What is the expected output? Commited, nothing more
What happens instead? git status show that the file is restaged (this time apparently due to changed line endings):
modified: src/x/y.java
I can see the original file has CRLF line endings, the temporary file has LF line endings and the restaged file has CRLF endings again.
When I recommit again the staged file (that is not to be reformatted then), the commit is successful without being restaged.
Environment:
Link to a git repository that can be cloned to reproduce the problem:
Additional context No problems when autocrlf=false
Probably a duplicate of https://github.com/Cosium/git-code-format-maven-plugin/issues/96 - sorry :(
What steps will reproduce the problem? Steps to reproduce the behavior:
What is the expected output? Commited, nothing more
What happens instead? git status show that the file is restaged (this time apparently due to changed line endings):
modified: src/x/y.java
I can see the original file has CRLF line endings, the temporary file has LF line endings and the restaged file has CRLF endings again.
When I recommit again the staged file (that is not to be reformatted then), the commit is successful without being restaged.
Environment:
Link to a git repository that can be cloned to reproduce the problem:
Additional context No problems when autocrlf=false