branch: elpa/magit commit bfadd410799d47e5e8880a5f1dc4e0a09b2c7b2b Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-commit-{absorb,autofixup}: Explicitly set transient behavior These commands behave as intended even without doing this, but the binding color in the `magit-commit' menu was still wrong. --- lisp/magit-commit.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el index 62a5fb8ce74..bdbcd519d79 100644 --- a/lisp/magit-commit.el +++ b/lisp/magit-commit.el @@ -492,6 +492,8 @@ See `magit-commit-autofixup' for an alternative implementation." (magit-commit-absorb 'run commit args))) nil nil nil nil commit)))) +(transient-augment-suffix magit-commit-absorb :transient 'transient--do-exit) + ;;;###autoload (autoload 'magit-commit-autofixup "magit-commit" nil t) (transient-define-prefix magit-commit-autofixup (phase commit args) "Spread staged or unstaged changes across recent commits. @@ -532,6 +534,8 @@ See `magit-commit-absorb' for an alternative implementation." (magit-commit-autofixup 'run commit args))) nil nil nil nil commit)))) +(transient-augment-suffix magit-commit-autofixup :transient 'transient--do-exit) + (transient-define-argument magit-autofixup:--context () :description "Diff context lines" :class 'transient-option