Function: vc-git--call

vc-git--call is a byte-compiled function defined in vc-git.el.gz.

Signature

(vc-git--call INFILE BUFFER COMMAND &rest ARGS)

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git--call (infile buffer command &rest args)
  ;; We don't need to care the arguments.  If there is a file name, it
  ;; is always a relative one.  This works also for remote
  ;; directories.  We enable `inhibit-null-byte-detection', otherwise
  ;; Tramp's eol conversion might be confused.
  (let ((inhibit-null-byte-detection t)
	(coding-system-for-read
         (or coding-system-for-read vc-git-log-output-coding-system))
	(coding-system-for-write
         (or coding-system-for-write vc-git-commits-coding-system))
	(process-environment (append (vc-git--env-vars command)
                                     process-environment)))
    (apply #'process-file vc-git-program infile buffer nil
           (cons "--no-pager"
                 (append (vc-git--no-optional-locks command)
                         (cons command args))))))