Skip to main content

abort_rebase

Function abort_rebase 

Source
pub async fn abort_rebase(repo_path: PathBuf) -> Result<(), GitError>
Expand description

Re-exported rebase/conflict APIs. Aborts an in-progress rebase.

When git reports stale or inconsistent rebase metadata and abort cannot complete normally, this helper removes stale rebase-merge/rebase-apply paths as a recovery fallback.

§Arguments

  • repo_path - Path to the git repository or worktree

§Returns

Ok(()) on success.

§Errors

Returns a GitError when git rebase --abort cannot be executed.