Skip to main content

pull_rebase

Function pull_rebase 

Source
pub async fn pull_rebase(repo_path: PathBuf) -> Result<PullRebaseResult, String>
Expand description

Re-exported commit/sync/diff APIs. Runs git pull --rebase and returns conflict outcome when applicable.

When an upstream branch can be resolved, this uses an explicit git pull --rebase <remote> <branch> target to avoid ambiguous rebase failures caused by multiple configured merge branches.

§Arguments

  • repo_path - Path to the git repository or worktree

§Returns

A PullRebaseResult describing whether pull/rebase completed or stopped on conflicts.

§Errors

Returns an error for non-conflict pull/rebase failures.