Function: magit-git

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

Signature

(magit-git &rest ARGS)

Documentation

Call Git synchronously in a separate process, for side-effects.

Option magit-git-executable(var)/magit-git-executable(fun) specifies the Git executable. The arguments ARGS specify arguments to Git, they are flattened before use.

Process output goes into a new section in the buffer returned by magit-process-buffer. If Git exits with a non-zero status, then raise an error.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defun magit-git (&rest args)
  "Call Git synchronously in a separate process, for side-effects.

Option `magit-git-executable' specifies the Git executable.
The arguments ARGS specify arguments to Git, they are flattened
before use.

Process output goes into a new section in the buffer returned by
`magit-process-buffer'.  If Git exits with a non-zero status,
then raise an error."
  (let ((magit-process-raise-error t))
    (magit-call-git args)))