Function: magit-ref-equal

magit-ref-equal is a byte-compiled function defined in magit-git.el.

Signature

(magit-ref-equal A B)

Documentation

Return t if the refnames A and B are equal.

A symbolic-ref pointing to some ref, is equal to that ref, as are two symbolic-refs pointing to the same ref. Refnames may be abbreviated.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-ref-equal (a b)
  "Return t if the refnames A and B are `equal'.
A symbolic-ref pointing to some ref, is `equal' to that ref,
as are two symbolic-refs pointing to the same ref.  Refnames
may be abbreviated."
  (and-let ((a (magit-ref-fullname a))
            (b (magit-ref-fullname b)))
    (equal a b)))