Function: magit-git-executable

magit-git-executable is a byte-compiled function defined in magit-git.el.

Signature

(magit-git-executable)

Documentation

Return value of magit-git-executable(var)/magit-git-executable(fun) or magit-remote-git-executable.

The variable is chosen depending on whether default-directory is remote.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defsubst magit-git-executable ()
  "Return value of `magit-git-executable' or `magit-remote-git-executable'.
The variable is chosen depending on whether `default-directory'
is remote."
  (if (file-remote-p default-directory)
      magit-remote-git-executable
    magit-git-executable))