summaryrefslogtreecommitdiff
path: root/src/handlers/diff_header_diff.rs
diff options
context:
space:
mode:
authorWilliam Escande <wescande@google.com>2022-02-06 23:29:41 +0100
committerDan Davison <dandavison7@gmail.com>2022-03-30 08:41:48 -0400
commit9c840f6f4cc25530368e21c6cc54a716655e920d (patch)
treebd27f4f54b4e0a789a88c68da8a3d3aed579adc0 /src/handlers/diff_header_diff.rs
parent6e242c76994b7d2d2ce4f5ce79ff843fc4394ed5 (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.rs2
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() {