Skip to main content

rebase_start

Function rebase_start 

Source
pub async fn rebase_start(
    repo_path: PathBuf,
    target_branch: String,
) -> Result<RebaseStepResult, GitError>
Expand description

Re-exported rebase/conflict APIs. Rebases the current branch onto target_branch.

Returns a conflict outcome when the rebase stops for manual resolution.

§Arguments

  • repo_path - Path to the git repository or worktree
  • target_branch - Branch to rebase onto (e.g., main)

§Returns

A RebaseStepResult describing whether the rebase completed or encountered conflicts.

§Errors

Returns a GitError for non-conflict git failures.