magit-log-edit-commit attempts to commit when nothing is staged. Change this behavior to display an error instead.
Signed-off-by: Ramkumar Ramachandra <[email protected]> --- magit.el | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/magit.el b/magit.el index 596b899..dc2e10f 100644 --- a/magit.el +++ b/magit.el @@ -3121,6 +3121,8 @@ Prefix arg means justify as well." (with-current-buffer (magit-find-buffer 'status default-directory) (cond (tag (magit-run-git-with-input commit-buf "tag" tag "-a" "-F" "-")) + ((not (magit-anything-staged-p)) + (error "Nothing staged")) (t (apply #'magit-run-async-with-input commit-buf magit-git-executable -- 1.7.1
