Function: magit-ref-eq
magit-ref-eq is a byte-compiled function defined in magit-git.el.
Signature
(magit-ref-eq A B)
Documentation
Return t if the refnames A and B are eq.
A symbolic-ref is eq to itself, but not to the ref it points
to, or to some other symbolic-ref that points to the same ref.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-ref-eq (a b)
"Return t if the refnames A and B are `eq'.
A symbolic-ref is `eq' to itself, but not to the ref it points
to, or to some other symbolic-ref that points to the same ref."
(let ((symbolic-a (magit-symbolic-ref-p a))
(symbolic-b (magit-symbolic-ref-p b)))
(or (and symbolic-a
symbolic-b
(equal a b))
(and (not symbolic-a)
(not symbolic-b)
(magit-ref-equal a b)))))