pub async fn rebase_on_branch(dir: &Path, branch: &str) -> Result<bool>Expand description
Rebase the current branch on top of origin/{branch}.
Used for push-failure recovery: when another agent has pushed to the same
branch, we fetch the latest remote state and rebase local commits on top.
Returns Ok(true) if rebase succeeded, Ok(false) if there was nothing to
rebase, and Err if rebase failed (conflicts).
Similar to rebase_on_default but targets the feature branch instead of
the default branch, and is used after push failures rather than at startup.