Skip to content

add support for NO_COLOR environment variable #116

Description

@LucasLarson

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions