diff options
author | Kyle Meyer <kyle@kyleam.com> | 2019-12-07 23:35:24 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-04-16 23:54:14 -0400 |
commit | 94583c74c435bfa1f0815f3025c5e6beab66638d (patch) | |
tree | 044a5fa17acae9a6a79900cb0bc623ec9da45552 | |
parent | 298331103c96101f5b800eba5124e16c94b6812d (diff) | |
download | emacs.d-94583c74c435bfa1f0815f3025c5e6beab66638d.tar.gz |
km-magit: Add command for listing tags which contain a revision
-rw-r--r-- | lisp/km-magit.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el index a42b22c..2f8709f 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -740,6 +740,12 @@ category." (append existing (list rs)) keys)))) +(defun km/magit-list-containing-tags (rev) + (interactive (list (magit-read-branch-or-commit "Revision"))) + (let ((magit-process-popup-time 0)) + (magit-run-git-async "for-each-ref" (format "--contains=%s" rev) + "--sort=v:refname" "refs/tags"))) + ;;; Copy functions |