summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/km-magit.el6
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