Documentation
¶
Index ¶
- func Config(args []string) error
- func Delete(args []string) error
- func Goto(args []string) error
- func IsDescendantOf(mgr *stack.Manager, branchName, ancestorName string) bool
- func List(args []string) error
- func New(args []string) error
- func OfferForcePush(branchName, worktreePath string) bool
- func OfferForcePushMultiple(branches []string, getBranchWorktree func(string) string) int
- func PR(args []string) error
- func Reparent(args []string) error
- func SelectNewParent(mgr *stack.Manager, g *git.Git, branchName, baseBranch string) (string, error)
- func Stack(args []string) error
- func Status(args []string) error
- func Sync(args []string) error
- func Unstack(args []string) error
- func Update(args []string) error
- func ValidateWorktreeBaseDir(worktreeBaseDir, repoDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDescendantOf ¶
IsDescendantOf checks if branchName is a descendant of ancestorName Exported for reuse by stack command
func OfferForcePush ¶ added in v0.1.1
OfferForcePush prompts the user to force push a branch with --force-with-lease Returns true if push was successful, false otherwise
func OfferForcePushMultiple ¶ added in v0.1.1
OfferForcePushMultiple prompts the user to force push multiple branches Returns the number of successfully pushed branches
func SelectNewParent ¶
SelectNewParent shows a selection UI for choosing the new parent Exported for reuse by stack command
func Sync ¶
Sync syncs the stack with remote - handles merged parents and branches behind origin/main
func ValidateWorktreeBaseDir ¶
ValidateWorktreeBaseDir validates that the worktree base directory is not inside the repo. Returns an error if the path is invalid, nil if valid.
Types ¶
This section is empty.