pub fn rebase(
obj_store: &mut GitObjectStore,
commits_table: &mut CommitsTable,
start_commit_id: &str,
end_commit_id: &str,
onto_commit_id: &str,
author: &str,
) -> Result<RebaseResult, RebaseError>Expand description
Rebase commits from start_commit_id (exclusive) through end_commit_id
(inclusive) onto onto_commit_id.
Walks the commit chain from end back to start, collects commits in chronological order, then cherry-picks each onto the new base.
Returns the new HEAD after all commits are replayed.