Function: magit-list-branches-pointing-at
magit-list-branches-pointing-at is a natively compiled function
defined in magit-git.el.
Signature
(magit-list-branches-pointing-at REV)
Documentation
Return list of branches pointing at REV.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-git.el
(defun magit-list-branches-pointing-at (rev)
"Return list of branches pointing at REV."
(let ((re (format "\\`%s refs/\\(heads\\|remotes\\)/\\(.*\\)\\'"
(magit-rev-verify rev))))
(seq-keep (##and (string-match re %)
(let ((name (match-str 2 %)))
(and (not (string-suffix-p "HEAD" name))
name)))
(magit-git-lines "show-ref"))))