branch: elpa/magit
commit 7298daa607f5c9597d537b73c14bc924b6a5d290
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-commit-amend-assert: Return non-nil if NOPATCH is non-nil
    
    Closes #5306.
---
 CHANGELOG            | 6 ++++++
 lisp/magit-commit.el | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index cfd91f8dce..6e47c1daa5 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,10 @@
 # -*- mode: org -*-
+* v4.3.0    UNRELEASE
+
+Bugfixes:
+
+- ~magit-commit-revise~ failed if no arguments were used.  #5306
+
 * v4.3.0    2025-02-04
 
 - Added new option ~magit-refs-show-branch-descriptions~.  42ed6c1966
diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el
index 6c46cc4ef0..24a872c0f1 100644
--- a/lisp/magit-commit.el
+++ b/lisp/magit-commit.el
@@ -430,7 +430,7 @@ Like `magit-commit-squash' but also run a `--autofixup' 
rebase."
 
 (defun magit-commit-assert (args &optional nopatch strict)
   (cond
-   (nopatch args)
+   (nopatch (or args (list "--")))
    ((or (magit-anything-staged-p)
         (and (magit-anything-unstaged-p)
              ;; ^ Everything of nothing is still nothing.

Reply via email to