Skip to content

GitModified and GitStaged filters blindly expect that the git command is available #1107

Open
@fredden

Description

@fredden

Is your feature request related to a problem?

When the GitModified or GitStaged filters are used, the code blindly expects that the git command-line tool is available. This results in unexpected behaviour if this assumption is not true.

Describe the solution you'd like

It would be better for end users if a suitable error message (and exit code) is presented describing the problem.

Additional context (optional)

This suggestion was initially raised in #1105 (review)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions