Documentation
¶
Index ¶
- func Amend(args []string) error
- func Commit(args []string) error
- func Config(args []string) error
- func Delete(args []string) error
- func Diff(args []string) error
- func Down(args []string) error
- func EmitCd(path string)
- func Goto(args []string) error
- func IsDescendantOf(mgr *stack.Manager, branchName, ancestorName string) bool
- func IsShellWrapped() bool
- func List(args []string) error
- func NavigateToBranch(g *git.Git, branchName, worktreePath string) error
- func New(args []string) error
- func OfferForcePush(branchName, worktreePath string) bool
- func OfferForcePushMultiple(branches []string, getBranchWorktree func(string) string) int
- func OfferPush(branchName, worktreePath string) bool
- func OfferPushMultiple(branches []string, getBranchWorktree func(string) string) int
- func PR(args []string) error
- func Push(args []string) error
- func Reparent(args []string) error
- func SelectNewParent(mgr *stack.Manager, g *git.Git, branchName, baseBranch string) (string, error)
- func ShellQuote(s string) string
- func Stack(args []string) error
- func Status(args []string) error
- func Sync(args []string) error
- func Unstack(args []string) error
- func Up(args []string) error
- func ValidateWorktreeBaseDir(worktreeBaseDir, repoDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmitCd ¶ added in v1.1.1
func EmitCd(path string)
EmitCd outputs a cd command to stdout if running through the shell wrapper, otherwise prints a message to stderr telling the user to cd manually.
func IsDescendantOf ¶
IsDescendantOf checks if branchName is a descendant of ancestorName Exported for reuse by stack command
func IsShellWrapped ¶ added in v1.1.1
func IsShellWrapped() bool
IsShellWrapped returns true if ezs is running through the shell wrapper function. When true, stdout "cd <path>" will be eval'd by the shell. When false, the tool should print the path to stderr and tell the user to cd manually.
func NavigateToBranch ¶ added in v1.6.0
NavigateToBranch navigates to a branch by cd-ing to its worktree or checking out the branch.
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 OfferPush ¶ added in v1.7.0
OfferPush prompts the user to push a branch (regular push, not force). Used after merge operations where history is not rewritten. Returns true if push was successful or not needed, false if declined.
func OfferPushMultiple ¶ added in v1.7.0
OfferPushMultiple prompts the user to push multiple branches (regular push, not force). Used after merge operations where history is not rewritten. 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 ShellQuote ¶ added in v1.5.0
ShellQuote returns a single-quoted shell string, escaping any embedded single quotes.
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.