add support for `NO_COLOR` environment variable
LucasLarson opened this issue · 0 comments
LucasLarson commented
Where git unstage
will return a git status
, there is no way to prevent color output:
This repository should adopt the closest existing standard – no-color.org
’s1 NO_COLOR
environmental variable – to prevent color output on demand until git(1)
itself supports it.2
Footnotes
-
jcs/no_color
generatesno-color.org
↩ -
As of November 2023, Git’s only test for
$NO_COLOR
is int/chainlint.pl
, where it was added in September 2022 (git/git@7c04aa7390
) ↩