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
Random files marked as modified #381
Comments
Hi, I have the same problem now. I am using ST3 3126. |
Having a similar problem with 1.5.0 where all lines of files are marked with red. Running on Linux ST3 3126. |
This issue may most likely be caused by different To check whether this is the reason, please try the following:
This will call git diff with |
Yep, this seems to be the case for me. Using that setting gets rid of the incorrect change markings. |
I am not quite sure if That's why I created a PR which might solve the issue even with |
@deathaxe |
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.
GitGutter creates 2 temp files one for the content of the view and one for the file from index. They are passed to a I guess the issue is caused by the way the temporary files are created. The view content is read via Sublime API as python string, encoded with the view's I was not aware of that when I worked on the fix for issue #74. |
@sbalgas: Did you restart ST? GitGutter reads 'eol' setting only on startup at the moment. |
This issue popped up for me (ST3 / Ubuntu 16.10). |
Thank you for your fast reaction @deathaxe :) Problem solved! |
Adding "ignore_whitespace": "eol", to settings solved the issue for me. |
Fix for the issue released with GitGutter 1.5.1 |
@atomtigerzoo are you ignoring files on export in gitattributes file, see #409 |
@deathaxe Adding |
The
Really modified or green + signs?
Does it mean, you saved a modified file in ST, than staged and commited it using git from shell or one of ST's git packages like GitSavvy? And after all file is still displayed as modified? Which git version do you use? Some user recently concerned about file modifications at the end of lines not being tracked correctly, which was finally caused by his old git version. If you set |
I used GitGutter without any problems until today's automatic update to the latest version.
Now Git Gutter marks all lines in random files as modified (yellow) and I cannot reproduce why. I tried removing the package, updated git on my system - still marking whole files as modified. I have the problem in multiple projects. When I use git on the command line nothing is modified, branch is clean, still Git Gutter shows modifications.
I am using ST3 with the latest GitGutter installed with Package Control.
The text was updated successfully, but these errors were encountered: