pub fn build_stack<G>(
git: &G,
doc: &PlanDocument,
view: &DiffView,
opts: &StackOptions<'_>,
) -> Result<StackResult, EngineError>where
G: ObjectReader + ObjectWriter + TreeBuilder + CommitWriter + TreeResolver + RecountSource + RefWriter,Expand description
Build and land the stack. Errors (and leaves the ref untouched) if any stack invariant fails.