@@ -138,22 +138,19 @@ pub mod tree {
138138
139139 /// Returns `true` if `index` changed as we applied conflicting stages to it, using `how` to determine if a
140140 /// 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`.
144141 ///
145- /// ### Important
142+ /// `removal_mode` decides how unconflicted entries should be removed if they are superseded by
143+ /// their conflicted counterparts.
146144 ///
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`.
151147 pub fn index_changed_after_applying_conflicts (
152148 & self ,
153149 index : & mut gix_index:: State ,
154150 how : TreatAsUnresolved ,
151+ removal_mode : gix_merge:: tree:: apply_index_entries:: RemovalMode ,
155152 ) -> 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 )
157154 }
158155 }
159156
0 commit comments