Function: magit--wip-ref
magit--wip-ref is a byte-compiled function defined in magit-wip.el.
Signature
(magit--wip-ref NAMESPACE &optional REF)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-wip.el
(defun magit--wip-ref (namespace &optional ref)
(concat magit-wip-namespace namespace
(or (and ref (string-prefix-p "refs/" ref) ref)
(and-let ((_(not (equal ref "HEAD")))
(branch (or ref (magit-get-current-branch))))
(concat "refs/heads/" branch))
"HEAD")))