Function: magit-ref-ambiguous-p

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

Signature

(magit-ref-ambiguous-p REFNAME)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-ref-ambiguous-p (refname)
  (save-match-data
    (if (string-match "\\`\\([^^~]+\\)\\(.*\\)" refname)
        (not (magit-ref-fullname (match-str 1 refname)))
      (error "%S has an unrecognized format" refname))))