Function: magit-git-dir
magit-git-dir is a byte-compiled function defined in magit-git.el.
This function is obsolete since Magit 4.0.0; use magit-gitdir
instead.
Signature
(magit-git-dir &optional PATH)
Documentation
Like (expand-file-name PATH (magit-gitdir)) or just (magit-gitdir).
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-git-dir (&optional path)
"Like (expand-file-name PATH (magit-gitdir)) or just (magit-gitdir)."
(declare (obsolete magit-gitdir "Magit 4.0.0"))
(and$ (magit-gitdir)
(if path (expand-file-name (convert-standard-filename path) $) $)))