Documentation
¶
Overview ¶
internal/state/state.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoState = errors.New("no cascade in progress")
ErrNoState is returned when no cascade state exists.
Functions ¶
func Save ¶
func Save(gitDir string, s *CascadeState) error
Save persists cascade state to .git/STACK_CASCADE_STATE.
Types ¶
type CascadeState ¶
type CascadeState struct {
Current string `json:"current"`
Pending []string `json:"pending"`
OriginalHead string `json:"original_head"`
}
CascadeState represents the state of an in-progress cascade operation.
func Load ¶
func Load(gitDir string) (*CascadeState, error)
Load reads cascade state from .git/STACK_CASCADE_STATE.
Click to show internal directories.
Click to hide internal directories.