Skip to content

Add support for irreversible-delete#945

Merged
dandavison merged 1 commit into
dandavison:masterfrom
wescande:support_irreversible_delete
Mar 30, 2022
Merged

Add support for irreversible-delete#945
dandavison merged 1 commit into
dandavison:masterfrom
wescande:support_irreversible_delete

Conversation

@wescande

@wescande wescande commented Feb 6, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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

@dandavison

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread src/handlers/diff_header.rs
Comment thread src/handlers/diff_header.rs Outdated
Comment thread src/handlers/diff_header.rs Outdated

@dandavison dandavison left a comment

Copy link
Copy Markdown
Owner

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
Copy Markdown
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
Copy Markdown
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.

3 participants