Skip to content

Commit

Permalink
merge_tools: rename MergeTool::Internal -> MergeTool::Builtin
Browse files Browse the repository at this point in the history
The name we will expose to the user is `builtin`, so this changes the internal messaging to match that.
  • Loading branch information
arxanas committed Aug 29, 2023
1 parent 145b0b2 commit 50f6e06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/merge_tools/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn run_mergetool(

let editor = get_merge_tool_from_settings(ui, settings)?;
match editor {
MergeTool::Internal => unimplemented!("run_mergetool with internal mergetool"),
MergeTool::Builtin => unimplemented!("run_mergetool with builtin mergetool"),
MergeTool::External(editor) => external::run_mergetool_external(
&editor, file_merge, content, repo_path, conflict, tree,
),
Expand All @@ -125,7 +125,7 @@ pub fn edit_diff(
// Start a diff editor on the two directories.
let editor = get_diff_editor_from_settings(ui, settings)?;
match editor {
MergeTool::Internal => unimplemented!("run_mergetool with internal mergetool"),
MergeTool::Builtin => unimplemented!("run_mergetool with builtin mergetool"),
MergeTool::External(editor) => edit_diff_external(
editor,
left_tree,
Expand All @@ -139,7 +139,7 @@ pub fn edit_diff(

#[derive(Clone, Debug, Eq, PartialEq)]
pub enum MergeTool {
Internal,
Builtin,
External(ExternalMergeTool),
}

Expand Down

0 comments on commit 50f6e06

Please sign in to comment.