atom / git-diff

Diff markers in Atom's gutter
MIT License
102 stars 36 forks source link

Changed files don't change the color #129

Closed matino closed 6 years ago

matino commented 7 years ago

Description

When I make changes to a file, its color is not changed to the orange in the tree view (although the changed line is marked with orange color in the editor). New files are marked as green -> this works as expected. See below: atom_git_diff_bug

I tried removing existing .atom folder but the issue remains.

Versions

$ atom --version
Atom    : 1.15.0
Electron: 1.3.13
Chrome  : 52.0.2743.82
Node    : 6.5.0
$ apm --version
apm  1.15.3
npm  3.10.5
node 4.4.5 x64
python 2.7.12rc1
git 2.11.0
OS: Debian stretch
Kernel: 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64 GNU/Linux
1c7 commented 6 years ago

similar problem here, but for me, new line didn't have color green

image

image

1c7 commented 6 years ago

I solve my problem in another Github issue: (can't find link now)

turn out just remove git-diff package (in Atom) and problem solved (you don't need reinstall that package)(it work, at least in my case)

maxbrunsfeld commented 6 years ago

The line number decorations include unsaved changes, but the ones in the Tree-view do not. Have you saved the file?

Also, a lot has changed since we've heard about this happening, so the issue may have been fixed. If not, please feel free to open a new issue on the main Atom repository, as we have moved this code there. Thanks!