diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2023-11-09 10:35:33 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2023-11-09 10:35:33 +0100 |
| commit | 02630b51896929011a420d9382779c98ecaef687 (patch) | |
| tree | df4fcf028a745ccc7fc9ddcd6234f51082ec3dba /lisp/magit-refs.el | |
| parent | 45ded8f77cca055eb4dc153389613c699fc7b2a4 (diff) | |
Define margin commands using transient-define-suffix
Diffstat (limited to 'lisp/magit-refs.el')
| -rw-r--r-- | lisp/magit-refs.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/magit-refs.el b/lisp/magit-refs.el index a097afe..6b5cc87 100644 --- a/lisp/magit-refs.el +++ b/lisp/magit-refs.el @@ -406,8 +406,12 @@ Compared with a branch read from the user." (magit-show-refs-arguments))) (magit-refs-setup-buffer ref args)) -(defun magit-refs-set-show-commit-count () +(transient-define-suffix magit-refs-set-show-commit-count () "Change for which refs the commit count is shown." + :description "Change verbosity" + :key "v" + :transient nil + :if-derived 'magit-refs-mode (interactive) (setq-local magit-refs-show-commit-count (magit-read-char-case "Show commit counts for " nil |
