rebaseplan
v0.1.0Plan a safe rebase: squash history and force-push risk flagged before you start.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
plan_rebase
Plan a safe rebase before you start: count merge commits and squash-merge markers in the branch history, weigh the upstream distance and whether the branch is published, and return a strategy, steps, and warnings.
| Parameter | Type | Description |
|---|---|---|
commits * | array | The branch's own commits, oldest first: {hash, subject, merge} |
published | boolean | Whether the branch has been pushed or shared (optional) |
upstream_commits | array | Commits the upstream branch has that this branch does not (optional): {hash, subject} |