Variable: magit-process-apply-ansi-colors
magit-process-apply-ansi-colors is a customizable variable defined in
magit-process.el.
Value
nil
Documentation
Whether and when to apply color escapes in the process buffer.
Magit instructs Git to not colorize its output, but third-party Git hooks may do so anyway. We recommend you figure out how to prevent such hooks from colorizing their output instead of customizing this option.
If nil (the default), do not apply color escape sequences. If t,
apply them once the subprocess has finished. If filter, apply them
as input arrives (which is more expensive and potentially fragile).
This is a footgun; starter-kits should leave this option untouched.
This variable was added, or its default value changed, in magit version 4.3.2.
Aliases
magit-process-finish-apply-ansi-colors (obsolete since Magit-Section 4.3.2)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defcustom magit-process-apply-ansi-colors nil
"Whether and when to apply color escapes in the process buffer.
Magit instructs Git to not colorize its output, but third-party Git
hooks may do so anyway. We recommend you figure out how to prevent
such hooks from colorizing their output instead of customizing this
option.
If `nil' (the default), do not apply color escape sequences. If `t',
apply them once the subprocess has finished. If `filter', apply them
as input arrives (which is more expensive and potentially fragile).
This is a footgun; starter-kits should leave this option untouched."
:package-version '(magit . "4.3.2")
:group 'magit-process
:type '(choice (const :tag "Do not apply" nil)
(const :tag "Apply when subprocess has finished" t)
(const :tag "Apply using process filter" filter)))