Skip to main content

rebase_on_base

Function rebase_on_base 

Source
pub async fn rebase_on_base(repo_dir: &Path, base_branch: &str) -> Result<()>
Expand description

Rebase the current branch onto the latest origin/<base_branch>.

Fetches the base branch first, then attempts a rebase. If the rebase fails (merge conflicts), it aborts the rebase and returns an error.