Skip to content

Coloured --diff output #994

@selurvedu

Description

@selurvedu

There is an option in diffutils:

--color [=when]

Specify whether to use color for distinguishing different contexts, like header, added or removed lines. when may be omitted, or one of:

  • none Do not use color at all. This is the default when no --color option is specified.
  • auto Use color only if standard output is a terminal.
  • always Always use color.

Specifying --color and no when is equivalent to --color=auto.

It would be nice if Black had a similar option, probably with a different name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions