Skip to content

Basic filtering of deleted files #132

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

Merged
merged 3 commits into from Jul 16, 2024
Merged

Basic filtering of deleted files #132

merged 3 commits into from Jul 16, 2024

Conversation

ghost
Copy link

@ghost ghost commented Jun 24, 2024

… as we call out to git diff to get the list of files to process, we can add a —diff-filter argument that ignores deleted. This will allow us to skip running our hooks on files that no longer exist.

There was some confusion on the last PR as I used the wrong account.

… as we call out to `git diff` to get the list of files to process, we can add a `—diff-filter` argument that ignores deleted. This will allow us to skip running our hooks on files that no longer exist.

There was some confusion on the last PR as I used the wrong account.
@LMaxence
Copy link
Member

Hello ! Thanks for your contribution :) looks good to me

Copy link
Contributor

@arthurio arthurio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe --diff-filter is the right approach but we probably need to add a test for it? Also, see my comment about --diff-filter=d being the opposite of what we want IMO.
Thanks for getting the ball rolling!

Copy link
Contributor

@arthurio arthurio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe --diff-filter is the right approach but we probably need to add a test for it? Also, see my comment about --diff-filter=d being the opposite of what we want IMO.
Thanks for getting the ball rolling!

Copy link
Contributor

@arthurio arthurio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe --diff-filter is the right approach but we probably need to add a test for it? Also, see my comment about --diff-filter=d being the opposite of what we want IMO.
Thanks for getting the ball rolling!

@arthurio
Copy link
Contributor

@jfb-workhelix Can we get things going? I made https://github.com/jfb-workhelix/mookme/pull/1 to add some tests on top of your changes.

Add tests for filtering out deleted files
@ghost
Copy link
Author

ghost commented Jul 15, 2024

Happy to pull it in and run it.

@ghost
Copy link
Author

ghost commented Jul 15, 2024

OK, it's merged in here, and the tests do complete successfully! Should I open a new PR?

Copy link
Contributor

@arthurio arthurio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me, thanks for the patch, I look forward to getting rid of this annoying bug 😅

@arthurio
Copy link
Contributor

OK, it's merged in here, and the tests do complete successfully! Should I open a new PR?

It's up to @LMaxence now, but I don't think it needs a new PR.

@LMaxence LMaxence merged commit 5d71c86 into Escape-Technologies:beta Jul 16, 2024
1 check passed
@LMaxence
Copy link
Member

It's fine by me :) Thanks for your contribution !

@LMaxence
Copy link
Member

Version 2.5.1 features your change :) Thanks again !

@ghost ghost deleted the filter-out-deleted-files branch July 31, 2024 13:59
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.

3 participants