LucasLarson/gunstage

add support for `NO_COLOR` environment variable

LucasLarson opened this issue · 0 comments

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

  1. jcs/no_color generates no-color.org

  2. As of November 2023, Git’s only test for $NO_COLOR is in t/chainlint.pl, where it was added in September 2022 (git/git@7c04aa7390)