Skip to main content

plan

Function plan 

Source
pub async fn plan(repo: &Path, seeds: &[Seed]) -> Result<Plan>
Expand description

Turn resolved seeds into a starting point. Unmerged branches must form a single line of history (each one contained in the next); two that diverge cannot both be the start and guessing which the task meant is refused. Unmerged bare shas already contained in the start are not picked twice, and are ordered oldest first whatever order the task listed them in.

An unresolved reference does not refuse the task: a hex word or a magi/... path in prose is often not a reference at all. It stays in the facts the candidates read, and a candidate that ends up empty is refused at merge time.