Struct jujutsu_lib::rewrite::DescendantRebaser
source · pub struct DescendantRebaser<'settings, 'repo> { /* private fields */ }
Expand description
Rebases descendants of a commit onto a new commit (or several).
Implementations§
source§impl<'settings, 'repo> DescendantRebaser<'settings, 'repo>
impl<'settings, 'repo> DescendantRebaser<'settings, 'repo>
pub fn new( settings: &'settings UserSettings, mut_repo: &'repo mut MutableRepo, rewritten: HashMap<CommitId, HashSet<CommitId>>, abandoned: HashSet<CommitId> ) -> DescendantRebaser<'settings, 'repo>
sourcepub fn rebased(&self) -> &HashMap<CommitId, CommitId>
pub fn rebased(&self) -> &HashMap<CommitId, CommitId>
Returns a map from CommitId
of old commit to new commit. Includes the
commits rebase so far. Does not include the inputs passed to
rebase_descendants
.
pub fn rebase_next(&mut self) -> Result<Option<RebasedDescendant>, BackendError>
pub fn rebase_all(&mut self) -> Result<(), BackendError>
Auto Trait Implementations§
impl<'settings, 'repo> !RefUnwindSafe for DescendantRebaser<'settings, 'repo>
impl<'settings, 'repo> Send for DescendantRebaser<'settings, 'repo>
impl<'settings, 'repo> !Sync for DescendantRebaser<'settings, 'repo>
impl<'settings, 'repo> Unpin for DescendantRebaser<'settings, 'repo>
impl<'settings, 'repo> !UnwindSafe for DescendantRebaser<'settings, 'repo>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more