mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-05 19:14:43 +00:00
merge_tools: assume that conflict is 3-way
We check that the conflict to run the merge tool on is at most 3-way already, and we don't store 1-way conflicts, so we should be able to assume that it's exactly a 3-way conflict.
This commit is contained in:
parent
b8221d4e21
commit
75f3537893
1 changed files with 3 additions and 3 deletions
|
@ -187,9 +187,9 @@ pub fn run_mergetool(
|
||||||
vec![]
|
vec![]
|
||||||
};
|
};
|
||||||
let files: HashMap<&str, _> = maplit::hashmap! {
|
let files: HashMap<&str, _> = maplit::hashmap! {
|
||||||
"base" => content.removes.pop().unwrap_or_default(),
|
"base" => content.removes.pop().unwrap(),
|
||||||
"right" => content.adds.pop().unwrap_or_default(),
|
"right" => content.adds.pop().unwrap(),
|
||||||
"left" => content.adds.pop().unwrap_or_default(),
|
"left" => content.adds.pop().unwrap(),
|
||||||
"output" => initial_output_content.clone(),
|
"output" => initial_output_content.clone(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue