Hi, On Mon, May 31, 2010 at 5:03 PM, Ramkumar Ramachandra <[email protected]> wrote: > 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
Kindly drop this patch as there's a bug: ammending a commit isn't possible. I'll post yet another one (hopefully) shortly. -- Ram
