Function: magit-headish
magit-headish is a natively compiled function defined in magit-git.el.
Signature
(magit-headish)
Documentation
Return the HEAD or if that doesn't exist the hash of the empty tree.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-git.el
(defun magit-headish ()
"Return the `HEAD' or if that doesn't exist the hash of the empty tree."
(if (magit-no-commit-p)
(magit-git-string "mktree")
"HEAD"))