Function: magit-get-current-branch
magit-get-current-branch is a byte-compiled function defined in
magit-git.el.
Signature
(magit-get-current-branch)
Documentation
Return the refname of the currently checked out branch.
Return nil if no branch is currently checked out.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-get-current-branch ()
"Return the refname of the currently checked out branch.
Return nil if no branch is currently checked out."
(magit-git-string "symbolic-ref" "--short" "HEAD"))