summaryrefslogtreecommitdiff
path: root/src/handlers/diff_header_diff.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-11-29 20:54:48 -0500
committerDan Davison <dandavison7@gmail.com>2021-12-05 11:25:05 -0500
commit6745f42ddadeccfa30628c70d39b8f9abbff35f0 (patch)
tree19cdd504eba5632d6bb0d6a72559b1ee1774c057 /src/handlers/diff_header_diff.rs
parente7294060ef3b8af0d2307eea4359123232f85646 (diff)
Display merge conflicts
Diffstat (limited to 'src/handlers/diff_header_diff.rs')
-rw-r--r--src/handlers/diff_header_diff.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/handlers/diff_header_diff.rs b/src/handlers/diff_header_diff.rs
index 869e40e..56195e7 100644
--- a/src/handlers/diff_header_diff.rs
+++ b/src/handlers/diff_header_diff.rs
@@ -1,4 +1,4 @@
-use crate::delta::{DiffType, State, StateMachine};
+use crate::delta::{DiffType, MergeParents, State, StateMachine};
impl<'a> StateMachine<'a> {
#[inline]
@@ -14,7 +14,8 @@ impl<'a> StateMachine<'a> {
self.painter.paint_buffered_minus_and_plus_lines();
self.state =
if self.line.starts_with("diff --cc ") || self.line.starts_with("diff --combined ") {
- State::DiffHeader(DiffType::Combined(2)) // We will confirm the number of parents when we see the hunk header
+ // We will determine the number of parents when we see the hunk header.
+ State::DiffHeader(DiffType::Combined(MergeParents::Unknown))
} else {
State::DiffHeader(DiffType::Unified)
};