ok/jj
1
0
Fork 0
forked from mirrors/jj

repo: add MutableRepo::rebase_descendants documentation

This commit is contained in:
Samuel Tardieu 2024-09-22 22:07:17 +02:00
parent 05b90390ae
commit 736163c8d3

View file

@ -1314,6 +1314,11 @@ impl MutableRepo {
result
}
/// Rebase descendants of the rewritten commits.
///
/// The descendants of the commits registered in `self.parent_mappings` will
/// be recursively rebased onto the new version of their parents.
/// Returns the number of rebased descendants.
pub fn rebase_descendants(&mut self, settings: &UserSettings) -> BackendResult<usize> {
let roots = self.parent_mapping.keys().cloned().collect_vec();
let mut num_rebased = 0;