Function: magit-remote-head
magit-remote-head is a natively compiled function defined in
magit-git.el.
Signature
(magit-remote-head REMOTE)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-git.el
(defun magit-remote-head (remote)
(and$ (cl-find-if (##string-match
"\\`ref: refs/heads/\\([^\s\t]+\\)[\s\t]HEAD\\'" %)
(magit-git-lines "ls-remote" "--symref" remote "HEAD"))
(match-str 1 $)))