Function: vc-git--env-vars
vc-git--env-vars is a byte-compiled function defined in vc-git.el.gz.
Signature
(vc-git--env-vars SUBCOMMAND)
Documentation
Return env vars for the process-environment of Git processes.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
;;; Internal commands
(defun vc-git--env-vars (subcommand)
"Return env vars for the `process-environment' of Git processes."
`("GIT_DIR"
,@(and vc-git-use-literal-pathspecs
'("GIT_LITERAL_PATHSPECS=1"))
;; Avoid optional repository locking during background operations
;; (bug#21559, bug#80903). Skipping these locks is always safe and
;; can only lead to subsequent commands running more slowly.
;; The "git status" case covers how `vc-checkin' uses
;; `vc-dir-resynch-file' to update the display state of files
;; undergoing an asynchronous check-in.
,@(and (or revert-buffer-in-progress
(equal subcommand "status"))
'("GIT_OPTIONAL_LOCKS=0"))))