diff options
| author | William Escande <wescande@google.com> | 2022-02-06 23:29:41 +0100 |
|---|---|---|
| committer | Dan Davison <dandavison7@gmail.com> | 2022-03-30 08:41:48 -0400 |
| commit | 9c840f6f4cc25530368e21c6cc54a716655e920d (patch) | |
| tree | bd27f4f54b4e0a789a88c68da8a3d3aed579adc0 /src/handlers/diff_header_diff.rs | |
| parent | 6e242c76994b7d2d2ce4f5ce79ff843fc4394ed5 (diff) | |
Add support for irreversible-delete
Fix #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
Diffstat (limited to 'src/handlers/diff_header_diff.rs')
| -rw-r--r-- | src/handlers/diff_header_diff.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/diff_header_diff.rs b/src/handlers/diff_header_diff.rs index fdd2d39..a79f6e1 100644 --- a/src/handlers/diff_header_diff.rs +++ b/src/handlers/diff_header_diff.rs @@ -22,7 +22,7 @@ impl<'a> StateMachine<'a> { } else { State::DiffHeader(DiffType::Unified) }; - self.handle_pending_mode_line_with_diff_name()?; + self.handle_pending_line_with_diff_name()?; self.handled_diff_header_header_line_file_pair = None; self.diff_line = self.line.clone(); if !self.should_skip_line() { |
