Function: magit-list-related-branches
magit-list-related-branches is a byte-compiled function defined in
magit-git.el.
Signature
(magit-list-related-branches RELATION &optional REV &rest ARGS)
Documentation
Return list of branches related to REV.
RELATION must be one of "--contains", "--no-contains", "--merged",
"--no-merged" and "--points-at". If optional REV is nil, default to
the "HEAD" commit. Optional ARGS are additional arguments passed to
"git branch".
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-git.el
(defun magit-list-related-branches (relation &optional rev &rest args)
"Return list of branches related to REV.
RELATION must be one of \"--contains\", \"--no-contains\", \"--merged\",
\"--no-merged\" and \"--points-at\". If optional REV is nil, default to
the \"HEAD\" commit. Optional ARGS are additional arguments passed to
\"git branch\"."
(seq-remove (##string-match-p "\\(\\`(HEAD\\|HEAD -> \\)" %)
(mapcar (##substring % 2)
(magit-git-lines "branch" args relation rev))))