Struct branchless::core::rewrite::RebasePlanBuilder [−][src]
pub struct RebasePlanBuilder<'repo> { /* fields omitted */ }
Expand description
Builder for a rebase plan. Unlike regular Git rebases, a git-branchless
rebase plan can move multiple unrelated subtrees to unrelated destinations.
Implementations
pub fn new(
repo: &'repo Repository,
graph: &'repo CommitGraph<'_>,
merge_base_db: &'repo MergeBaseDb<'_>,
main_branch_oid: &MainBranchOid
) -> Self
pub fn new(
repo: &'repo Repository,
graph: &'repo CommitGraph<'_>,
merge_base_db: &'repo MergeBaseDb<'_>,
main_branch_oid: &MainBranchOid
) -> Self
Constructor.
Generate a sequence of rebase steps that cause the subtree at source_oid
to be rebased on top of dest_oid
.
Create the rebase plan. Returns None
if there were no commands in the rebase plan.
Auto Trait Implementations
impl<'repo> !RefUnwindSafe for RebasePlanBuilder<'repo>
impl<'repo> !Send for RebasePlanBuilder<'repo>
impl<'repo> !Sync for RebasePlanBuilder<'repo>
impl<'repo> Unpin for RebasePlanBuilder<'repo>
impl<'repo> !UnwindSafe for RebasePlanBuilder<'repo>