Skip to content

Commit

Permalink
Disable Git-Gutter on symlinked files
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsequitur committed Jun 4, 2015
1 parent e5855a9 commit 4040abb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-gutter+.el
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,15 @@ calculated width looks wrong. (This can happen with some special characters.)"
:lighter git-gutter+-lighter
(if git-gutter+-mode
(if (and (git-gutter+-file-buffer-p)
(not (file-symlink-p (buffer-file-name)))
(git-gutter+-in-git-repository-p (buffer-file-name)))
(progn
(git-gutter+-add-local-hooks)
(git-gutter+-refresh))
(if (called-interactively-p 'any)
(message "No Git repo for current buffer"))
(message (if (and (buffer-file-name) (file-symlink-p (buffer-file-name)))
"Symlinked files are not supported by Git-Gutter+"
"No Git repo for current buffer")))
(git-gutter+-mode -1))
(git-gutter+-remove-local-hooks)
(git-gutter+-clear)))
Expand Down

0 comments on commit 4040abb

Please sign in to comment.