atom / git-diff

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

Gutter highlighting does not work for files in a submodule #136

Closed Kosyne closed 6 years ago

Kosyne commented 6 years ago

Description

git-diff highlighting does not work for files in a submodule.

Steps to Reproduce

  1. Have a git repo that uses submodules
  2. Edit a file NOT in a submodule, note that the gutter highlights properly
  3. Edit a file IN a submodule, note that the gutter does NOT highlight at all.

Expected behavior: Submodules should highlight the gutter the same as non-submodules.

Actual behavior: There is no git-diff highlighting whatsoever.

Reproduces how often: Always

Versions

Atom: 1.17.2

git-diff: 1.3.5

Kosyne commented 6 years ago

So, apparently you need to restart atom and/or reopen that file's tab before the highlighting will work. My bad.