Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchNode ¶
type BranchNode struct {
Ref stack.BranchRef
IsCurrent bool
IsLinear bool // whether history is linear with base branch
BaseBranch string
Commits []git.CommitInfo // commits unique to this branch (base..head)
FilesChanged []git.FileDiffStat // per-file diff stats
PR *ghapi.PRDetails
Additions int
Deletions int
// UI state
CommitsExpanded bool
FilesExpanded bool
}
BranchNode holds all display data for a single branch in the stack.
func LoadBranchNodes ¶
LoadBranchNodes populates branch display data from a stack.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the Bubbletea model for the interactive stack view.
func New ¶
func New(nodes []BranchNode, trunk stack.BranchRef, version string) Model
New creates a new stack view model.
func (Model) CheckoutBranch ¶
CheckoutBranch returns the branch to checkout after the TUI exits, if any.
Click to show internal directories.
Click to hide internal directories.