@@ -138,22 +138,19 @@ pub mod tree {
138
138
139
139
/// Returns `true` if `index` changed as we applied conflicting stages to it, using `how` to determine if a
140
140
/// conflict should be considered unresolved.
141
- /// It's important that `index` is at the state of [`Self::tree`].
142
- ///
143
- /// Note that in practice, whenever there is a single [conflict](Conflict), this function will return `true`.
144
141
///
145
- /// ### Important
142
+ /// `removal_mode` decides how unconflicted entries should be removed if they are superseded by
143
+ /// their conflicted counterparts.
146
144
///
147
- /// Also, the unconflicted stage of such entries will be removed merely by setting a flag, so the
148
- /// in-memory entry is still present.
149
- /// One can prune `index` [in-memory](gix_index::State::remove_entries()) or write it to disk, which will
150
- /// cause entries marked for removal not to be persisted.
145
+ /// It's important that `index` is at the state of [`Self::tree`].
146
+ /// Note that in practice, whenever there is a single [conflict](Conflict), this function will return `true`.
151
147
pub fn index_changed_after_applying_conflicts (
152
148
& self ,
153
149
index : & mut gix_index:: State ,
154
150
how : TreatAsUnresolved ,
151
+ removal_mode : gix_merge:: tree:: apply_index_entries:: RemovalMode ,
155
152
) -> bool {
156
- gix_merge:: tree:: apply_index_entries ( & self . conflicts , how, index)
153
+ gix_merge:: tree:: apply_index_entries ( & self . conflicts , how, index, removal_mode )
157
154
}
158
155
}
159
156
0 commit comments