branch: externals/diff-hl commit 30a54e96a3f148ea477560f84987b45072a36a99 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
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)