Skip to main content

is_rebase_in_progress

Function is_rebase_in_progress 

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

Re-exported rebase/conflict APIs. Returns whether a rebase is currently in progress in the repository or worktree.

§Arguments

  • repo_path - Path to the git repository or worktree

§Returns

true when .git/rebase-merge or .git/rebase-apply exists, false otherwise.

§Errors

Returns a GitError when the git directory cannot be resolved.