diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-01-17 07:45:19 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-01-17 07:45:19 +0100 |
| commit | 5e60aa72e560b79a73580f00bcdb37d360cd04c7 (patch) | |
| tree | d9be477466f3a5acdcbe27c30aab446f784180f9 | |
| parent | b83417276c494f08feb02939ae05bff23c1e4224 (diff) | |
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.
| -rw-r--r-- | docs/magit.org | 3 | ||||
| -rw-r--r-- | docs/magit.texi | 3 | ||||
| -rw-r--r-- | lisp/magit-commit.el | 8 |
3 files changed, 4 insertions, 10 deletions
diff --git a/docs/magit.org b/docs/magit.org index 95a3a21..96c1e4a 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 31be872..69342c3 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 600c356..3b3f0b8 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) |
