Function: magit-headish

magit-headish is a byte-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 ~/.emacs.d/elpa/magit-20260411.1452/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"))