branch: elpa/magit commit 5e60aa72e560b79a73580f00bcdb37d360cd04c7 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-commit-create: No longer amend with a prefix argument Several fine commands dedicated to amending exist, and have been preferable to this prefix argument for many years now. --- docs/magit.org | 3 +-- docs/magit.texi | 3 +-- lisp/magit-commit.el | 8 ++------ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/docs/magit.org b/docs/magit.org index 95a3a21e83e..96c1e4a9d87 100644 --- a/docs/magit.org +++ b/docs/magit.org @@ -4620,8 +4620,7 @@ Also see [[man:git-commit]] - Key: c c (magit-commit-create) :: - Create a new commit on ~HEAD~. With a prefix argument amend to the - commit at ~HEAD~ instead. + Create a new commit. - Key: c a (magit-commit-amend) :: diff --git a/docs/magit.texi b/docs/magit.texi index 31be872b7fd..69342c3808b 100644 --- a/docs/magit.texi +++ b/docs/magit.texi @@ -5494,8 +5494,7 @@ temporary buffer until a suffix is invoked. @item @kbd{c c} (@code{magit-commit-create}) @kindex c c @findex magit-commit-create -Create a new commit on @code{HEAD}. With a prefix argument amend to the -commit at @code{HEAD} instead. +Create a new commit. @item @kbd{c a} (@code{magit-commit-amend}) @kindex c a diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el index 600c356dad4..3b3f0b8d074 100644 --- a/lisp/magit-commit.el +++ b/lisp/magit-commit.el @@ -174,12 +174,8 @@ Also see https://github.com/magit/magit/issues/4132." ;;;###autoload (defun magit-commit-create (&optional args) - "Create a new commit on `HEAD'. -With a prefix argument, amend to the commit at `HEAD' instead. -\n(git commit [--amend] ARGS)" - (interactive (if current-prefix-arg - (list (cons "--amend" (magit-commit-arguments))) - (list (magit-commit-arguments)))) + "Create a new commit." + (interactive (list (magit-commit-arguments))) (cond ((member "--all" args) (setq this-command 'magit-commit--all)) ((member "--allow-empty" args)