mod apply;
mod engine;
mod executor;
use objects::object::Tree;
pub(crate) struct MergeResult {
pub tree: Tree,
pub conflicts: Vec<String>,
pub renames: Vec<(String, String, f64)>,
pub directory_renames: Vec<(String, String)>,
}
#[derive(Clone, Copy)]
pub(crate) struct ConflictLabels<'a> {
pub current: &'a str,
pub incoming: &'a str,
}
impl ConflictLabels<'_> {
pub(crate) const DEFAULT: ConflictLabels<'static> = ConflictLabels {
current: "CURRENT",
incoming: "INCOMING",
};
}
pub(crate) use apply::apply_merged_tree;
pub(crate) use engine::{three_way_merge, three_way_merge_with_labels};