Versions in this module Expand all Collapse all v0 v0.7.0 Jul 11, 2026 Changes in this version + func Render(p Plan) string + type Destination struct + Branch string + Protected bool + Remote string + func (d Destination) Ref() string + type DivergeRule string + const DivergeAsk + const DivergeRebase + type InteractionLevel string + const Automatic + const Confirm + const Decide + const Inform + type OpKind string + const OpConfirm + const OpCreateTracking + const OpDecide + const OpDirectPush + const OpFastForward + const OpNoop + const OpOfferMR + const OpRefuse + const OpReplay + const OpTeach + const OpUpload + type Operation struct + Choices []string + Detail string + Kind OpKind + Reason string + type Plan struct + Dest Destination + Operations []Operation + Summary string + func DirectPush(remote, refspec string) Plan + func Resolve(s Situation) Plan + func ResolveExplicitPush(s Situation) Plan + func ResolvePull(s Situation) Plan + func (p Plan) Interaction() InteractionLevel + type Policy struct + Protected []string + func DefaultPolicy() Policy + func WithProtected(protected []string) Policy + func (p Policy) DivergeRule(branch string) DivergeRule + func (p Policy) IsProtected(branch string) bool + type Situation struct + Ahead int + AutoConverge bool + Behind int + Dest Destination + HasUpstream bool + InProgressOp string + OnDiverge DivergeRule + func SituationFromState(state gitstate.RepoState, policy Policy) Situation + func SituationFromStateConverge(state gitstate.RepoState, policy Policy) Situation