Function: magit-git-executable-find
magit-git-executable-find is a natively compiled function defined in
magit-git.el.
Signature
(magit-git-executable-find COMMAND)
Documentation
Search for COMMAND in Git's exec path, falling back to exec-path(var)/exec-path(fun).
Like executable-find, return the absolute file name of the
executable.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-git.el
(defun magit-git-executable-find (command)
"Search for COMMAND in Git's exec path, falling back to `exec-path'.
Like `executable-find', return the absolute file name of the
executable."
(or (locate-file command
(list (concat
(file-remote-p default-directory)
(or (magit-git-string "--exec-path")
(error "\"git --exec-path\" failed"))))
exec-suffixes
#'file-executable-p)
(executable-find command t)))