Function: magit-ref-equal

magit-ref-equal is a natively 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 /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)))