branch: externals/diff-hl commit dabb7be6283488abd8d232ea8ce590d502713ed8 Merge: e84209e959 30a54e96a3 Author: Dmitry Gutov <dgu...@yandex.ru> Commit: GitHub <nore...@github.com>
Merge pull request #188 from tarsiiformes/silencio Move misplaced interactive form --- diff-hl.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-hl.el b/diff-hl.el index 58989d1f0f..4fb8684ef0 100644 --- a/diff-hl.el +++ b/diff-hl.el @@ -758,10 +758,10 @@ Only supported with Git." (diff-hl-update))))) (defun diff-hl-unstage-file () - (interactive) "Unstage all changes in the current file. Only supported with Git." + (interactive) (unless buffer-file-name (user-error "No current file")) (diff-hl--ensure-staging-supported)