Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Files are randomly marked as modified (Issue #381)
Issue: With introducing `git archive` command it was considered save to remove the eol mangling as correct translations should happen by this command. This seems not to apply sometimes. Solution: Reintroduce eol mangling for the files read from repository. Note: As the temporary view file is created from text, it should be written to disk with `\n` and thus shouldn't need mangling.
- Loading branch information
527f901
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is true that the view will always have only
\n
. I think that would depend on the OS. I'm on Windows, and when I open a file that I know has CRLF line endings, GitGutter it telling me that all lines are different.527f901
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Views only apply the line endings when saving and reading and use
\n
internally (This leads to problems with mixed line endings). Do you have the newest version from the master branch or the latest release (which does not contain this fix)?