mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-24 20:54:15 +00:00
repo: remove MutableRepo::rebase_descendants_with_options
This function had no callers within the codebase.
This commit is contained in:
parent
cb1e0fbafc
commit
44ec7d0ee9
1 changed files with 1 additions and 20 deletions
|
@ -1334,25 +1334,6 @@ impl MutableRepo {
|
|||
self.rebase_descendants_with_options_return_map(settings, Default::default())
|
||||
}
|
||||
|
||||
/// 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.
|
||||
///
|
||||
/// This function is similar to [`MutableRepo::rebase_descendants`], but
|
||||
/// allows for rebase behavior to be customized via [`RebaseOptions`].
|
||||
pub fn rebase_descendants_with_options(
|
||||
&mut self,
|
||||
settings: &UserSettings,
|
||||
options: RebaseOptions,
|
||||
) -> BackendResult<usize> {
|
||||
let num_rebased = self
|
||||
.rebase_descendants_with_options_return_map(settings, options)?
|
||||
.len();
|
||||
Ok(num_rebased)
|
||||
}
|
||||
|
||||
/// Rebase descendants of the rewritten commits.
|
||||
///
|
||||
/// The descendants of the commits registered in `self.parent_mappings` will
|
||||
|
@ -1361,7 +1342,7 @@ impl MutableRepo {
|
|||
///
|
||||
/// All rebased descendant commits will be preserved even if they were
|
||||
/// emptied following the rebase operation. To customize the rebase
|
||||
/// behavior, use [`MutableRepo::rebase_descendants_with_options`].
|
||||
/// behavior, use [`MutableRepo::rebase_descendants_return_map`].
|
||||
pub fn rebase_descendants(&mut self, settings: &UserSettings) -> BackendResult<usize> {
|
||||
let roots = self.parent_mapping.keys().cloned().collect_vec();
|
||||
let mut num_rebased = 0;
|
||||
|
|
Loading…
Reference in a new issue