Documentation
¶
Index ¶
- func Busy(ops git.Ops) (bool, error)
- func CheckClean(ops git.Ops, path string) error
- func SamePath(a, b string) bool
- type Context
- func (c *Context) Location(branch string) *Location
- func (c *Context) Ops(branch string) (git.Ops, error)
- func (c *Context) OriginOps() (git.Ops, error)
- func (c *Context) Preflight(branches []string) error
- func (c *Context) Prepare(branch string) (git.Ops, error)
- func (c *Context) Record(branch string) error
- func (c *Context) Rename(oldName, newName string)
- func (c *Context) Restore(originalRefs map[string]string) error
- func (c *Context) RestoreOrigin(branch string) error
- func (c *Context) Start(branch string, expected ...string) error
- type Location
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
Origin Location `json:"origin"`
Owners map[string]*Location `json:"owners,omitempty"`
Touched map[string]string `json:"touched,omitempty"`
Pending string `json:"pending,omitempty"`
PendingBefore string `json:"pendingBefore,omitempty"`
}
Context binds a multi-branch operation to its original worktrees. Touched records the last ref value written by the operation, not merely a snapshot: recovery must not overwrite commits made after the operation stopped.
func (*Context) Prepare ¶
Prepare may switch the initiating worktree, but never a different worktree.
func (*Context) RestoreOrigin ¶
Click to show internal directories.
Click to hide internal directories.