branch: elpa/magit
commit 31e462e1eb69045019a41af7d90cd6058082a2e4
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-commit-autofixup: Support reducing verbosity
Default to high verbosity but let the user drop the argument.
---
lisp/magit-commit.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el
index b6fb250a7a7..074d653fc82 100644
--- a/lisp/magit-commit.el
+++ b/lisp/magit-commit.el
@@ -499,9 +499,11 @@ transient command to select infix arguments.
This command requires the git-autofixup script, which is
available from https://github.com/torbiak/git-autofixup.
See `magit-commit-absorb' for an alternative implementation."
+ :value '("-vv")
["Arguments"
(magit-autofixup:--context)
- (magit-autofixup:--strict)]
+ (magit-autofixup:--strict)
+ ("-v" "Increase verbosity" "-vv")]
["Actions"
("x" "Absorb" magit-commit-autofixup)]
(interactive (if current-prefix-arg
@@ -519,7 +521,7 @@ See `magit-commit-absorb' for an alternative
implementation."
(when commit
(setq commit (magit-rebase-interactive-assert commit t)))
(if (and commit (eq phase 'run))
- (progn (magit-run-git-async "autofixup" "-vv" args commit) t)
+ (progn (magit-run-git-async "autofixup" args commit) t)
(magit-log-select
(lambda (commit)
(with-no-warnings ; about non-interactive use