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

Ignore unstaged files #119

Open
dcm99 opened this issue Jan 15, 2025 · 0 comments
Open

Ignore unstaged files #119

dcm99 opened this issue Jan 15, 2025 · 0 comments

Comments

@dcm99
Copy link

dcm99 commented Jan 15, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant