Where git unstage will return a git status, there is no way to prevent color output:
-
|
done && command git status |
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
Where
git unstagewill return agit status, there is no way to prevent color output:gunstage/bin/git-unstage
Line 31 in f172b48
gunstage/bin/git-unstage
Line 43 in f172b48
This repository should adopt the closest existing standard –
no-color.org’s1NO_COLORenvironmental variable – to prevent color output on demand untilgit(1)itself supports it.2Footnotes
jcs/no_colorgeneratesno-color.org↩As of November 2023, Git’s only test for
$NO_COLORis int/chainlint.pl, where it was added in September 2022 (git/git@7c04aa7390) ↩