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

Add option to ignore moved/deleted files #544

Open
Svenito opened this issue Mar 5, 2024 · 0 comments · May be fixed by #545
Open

Add option to ignore moved/deleted files #544

Svenito opened this issue Mar 5, 2024 · 0 comments · May be fixed by #545
Assignees

Comments

@Svenito
Copy link
Collaborator

Svenito commented Mar 5, 2024

Is your feature request related to a problem? Please describe.
It should be possible to ignore moved or deleted files when determining if they should be formatted. We only care about formatting if code as been touched inside the file, not if the file has been moved or deleted.

Describe the solution you'd like
Add a new option to only process files that have had their content changed

Additional context
This could be done by adding --diff-filter=M to the _git_diff_name_only function if the command line flag is set

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

Successfully merging a pull request may close this issue.

2 participants