@@ -107,7 +107,7 @@ pub mod commit {
107
107
///
108
108
pub mod tree {
109
109
use gix_merge:: blob:: builtin_driver;
110
- pub use gix_merge:: tree:: { Conflict , ContentMerge , Resolution , ResolutionFailure , UnresolvedConflict } ;
110
+ pub use gix_merge:: tree:: { Conflict , ContentMerge , Resolution , ResolutionFailure , TreatAsUnresolved } ;
111
111
112
112
/// The outcome produced by [`Repository::merge_trees()`](crate::Repository::merge_trees()).
113
113
#[ derive( Clone ) ]
@@ -130,7 +130,7 @@ pub mod tree {
130
130
impl Outcome < ' _ > {
131
131
/// Return `true` if there is any conflict that would still need to be resolved as they would yield undesirable trees.
132
132
/// This is based on `how` to determine what should be considered unresolved.
133
- pub fn has_unresolved_conflicts ( & self , how : UnresolvedConflict ) -> bool {
133
+ pub fn has_unresolved_conflicts ( & self , how : TreatAsUnresolved ) -> bool {
134
134
self . conflicts . iter ( ) . any ( |c| c. is_unresolved ( how) )
135
135
}
136
136
}
@@ -206,7 +206,7 @@ pub mod tree {
206
206
/// If `Some(what-is-unresolved)`, the first unresolved conflict will cause the entire merge to stop.
207
207
/// This is useful to see if there is any conflict, without performing the whole operation, something
208
208
/// that can be very relevant during merges that would cause a lot of blob-diffs.
209
- pub fn with_fail_on_conflict ( mut self , fail_on_conflict : Option < UnresolvedConflict > ) -> Self {
209
+ pub fn with_fail_on_conflict ( mut self , fail_on_conflict : Option < TreatAsUnresolved > ) -> Self {
210
210
self . inner . fail_on_conflict = fail_on_conflict;
211
211
self
212
212
}
0 commit comments