Skip to content

Ignore unstaged files #119

@dcm99

Description

@dcm99

If i run dotnet-affected against my repo with pending changes, the result is showing affected changes also caused by files that are not staged.
Is it justifiable to introduce a switch to ignore unstaged files? Or is my use case to exotic?
Reason
I use dotnet-affected in a git pre-commit hook, determing which projects are affected by the commit. In these projects I then add a "update_by_dependency.txt" file which triggers Nerdbank GitVersioning to bump the version of the affected project.

As a workaround I currently stash the unstaged files before I run dotnet-affected.

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