pub fn plan(selection: &Selection, opts: &RebaseOptions) -> Result<Plan>Expand description
Plans a batch rebase, fetching each repository’s onto ref exactly once.
Enumerates the selected worktrees, resolves the onto ref and fetches it once per
repository, then classifies each worktree against the freshly fetched ref. The
returned Plan is exactly what a dry run reports; a real run passes it to
execute.
The fetch runs even for a dry run: it is non-destructive (it only advances the shared remote-tracking ref) and is what pins the single snapshot every worktree is measured — and would be rebased — against.