Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for NO_COLOR environment variable #116

Open
LucasLarson opened this issue Jul 25, 2022 · 0 comments
Open

add support for NO_COLOR environment variable #116

LucasLarson opened this issue Jul 25, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@LucasLarson
Copy link
Owner

LucasLarson commented Jul 25, 2022

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)

@LucasLarson LucasLarson added the enhancement New feature or request label Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant