Function: vc-git--run-command-string
vc-git--run-command-string is a byte-compiled function defined in
vc-git.el.gz.
Signature
(vc-git--run-command-string FILE &rest ARGS)
Documentation
Run a git command on FILE and return its output as string.
FILE can be nil.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git--run-command-string (file &rest args)
"Run a git command on FILE and return its output as string.
FILE can be nil."
(let* ((ok t)
(str (with-output-to-string
(with-current-buffer standard-output
(unless (apply #'vc-git--out-ok
(if file
(append args (list (file-relative-name
file)))
args))
(setq ok nil))))))
(and ok str)))