Function: magit-toggle-git-debug
magit-toggle-git-debug is an interactive and byte-compiled function
defined in magit-git.el.
Signature
(magit-toggle-git-debug)
Documentation
Toggle whether additional git errors are reported.
Magit basically calls git for one of these two reasons: for side-effects or to do something with its standard output.
When git is run for side-effects then its output, including error
messages, go into the process buffer which is shown when using $ (magit-process-buffer).
When git's output is consumed in some way, then it would be too expensive to also insert it into this buffer, but with this command that can be enabled temporarily. In that case, if git returns with a non-zero exit status, then at least its standard error is inserted into this buffer.
See info node (magit)Debugging Tools for more information.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-toggle-git-debug ()
"Toggle whether additional git errors are reported.
Magit basically calls git for one of these two reasons: for
side-effects or to do something with its standard output.
When git is run for side-effects then its output, including error
messages, go into the process buffer which is shown when using \
\\<magit-mode-map>\\[magit-process-buffer].
When git's output is consumed in some way, then it would be too
expensive to also insert it into this buffer, but with this command
that can be enabled temporarily. In that case, if git returns with
a non-zero exit status, then at least its standard error is inserted
into this buffer.
See info node `(magit)Debugging Tools' for more information."
(interactive)
(setq magit-git-debug (not magit-git-debug))
(message "Additional reporting of Git errors %s"
(if magit-git-debug "enabled" "disabled")))