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 support for irreversible-delete #945

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

wescande
Copy link
Contributor

@wescande wescande commented Feb 6, 2022

Add support for git diff -D (aka irreversible delete)

The patch is adding a title for removed file, even when there is no file content in the diff output
Without the patch, there was no output related to the file at all

A image is better than a thousand word: wrong output on the left:x:, Better output on the right :heavy_check_mark:
image

@robinmoussu
Copy link

Nice, I just hit this limitation today and was going to report a bug!

@dandavison
Copy link
Owner

Hi @wescande, thanks for this and I'm sorry I've been slow to review this one. It looks really clean and well-tested -- I'll look properly soon.

@wescande
Copy link
Contributor Author

I notice this allow to resolve #128 (even if it wasn't done for it initially)
I could either update this change by removing the #[ignore] or we can do it in a follow-up as you prefer.

Copy link
Owner

@dandavison dandavison left a comment

Choose a reason for hiding this comment

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

Great! Couple of questions -- sorry again for being so slow this month.

@dandavison
Copy link
Owner

I notice this allow to resolve #128 (even if it wasn't done for it initially)
I could either update this change by removing the #[ignore]

Awesome, yes please feel free to remove it in this PR if convenient.

Fix dandavison#128

Add support for `git diff -D` (aka irreversible delete)

The patch is adding a title for removed file, even when there is no file content in the diff output
Without the patch, there was no output related to the file at all
@wescande wescande force-pushed the support_irreversible_delete branch from cf493f4 to ea718dd Compare March 30, 2022 09:04
@dandavison dandavison merged commit 9c840f6 into dandavison:master Mar 30, 2022
@dandavison
Copy link
Owner

Excellent, thanks very much for this work @wescande, and thanks for the extra refactor you did there. If you'd like to do any follow-up refactoring that would be very welcome of course.

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.

None yet

3 participants