Skip to content

feat(git): Use AMR mode for diff-filter option#301

Open
gheritarish wants to merge 1 commit into
3YOURMIND:mainfrom
gheritarish:main
Open

feat(git): Use AMR mode for diff-filter option#301
gheritarish wants to merge 1 commit into
3YOURMIND:mainfrom
gheritarish:main

Conversation

@gheritarish

Copy link
Copy Markdown

Currently, the diff-filter option in the `git diff command is AR. This means that only added or renamed files are taken into account.

However, in a case where a migration is updated, we want to be able to lint it anyways. So, changing the diff-filter mode to AMR should take that into account.

Currently, the diff-filter option in the `git diff command is AR. This
means that only added or renamed files are taken into account.

However, in a case where a migration is updated, we want to be able to
lint it anyways. So, changing the diff-filter mode to AMR should take
that into account.
@gheritarish

Copy link
Copy Markdown
Author

Sorry for opening a PR without opening an issue beforehand, I encountered this behaviour in a specific case, and thought it would be nice to have it everywhere. Fell free to discard this PR if it feels useless, or to tell me if you'd want an option to use either the AR diff-filter option, or the AMR diff-filter option.

@noahhi

noahhi commented May 19, 2026

Copy link
Copy Markdown

I ran in to this too and would like to see this change!

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

Successfully merging this pull request may close these issues.

2 participants