Documentation
¶
Index ¶
- func CommonDir(ctx context.Context, r runner.Runner, workDir string) (string, error)
- func ConfigGetLocal(ctx context.Context, r runner.Runner, repoRoot string, key string) (string, error)
- func DefaultBaseRef(ctx context.Context, r runner.Runner, repoRoot string) string
- func IsAncestor(ctx context.Context, r runner.Runner, repoRoot string, olderRef string, ...) (bool, error)
- func PrimaryWorktreeRoot(ctx context.Context, r runner.Runner, workDir string) (string, error)
- func RefExists(ctx context.Context, r runner.Runner, repoRoot string, ref string) (bool, error)
- func RemoteBranches(ctx context.Context, r runner.Runner, repoRoot string, remote string) ([]string, error)
- func RemoteURL(ctx context.Context, r runner.Runner, repoRoot string, remote string) (string, error)
- func RepoRoot(ctx context.Context, r runner.Runner, cwd string) (string, error)
- func WorktreeAddExistingBranch(ctx context.Context, r runner.Runner, repoRoot string, path string, ...) error
- func WorktreeAddNewBranch(ctx context.Context, r runner.Runner, repoRoot string, path string, ...) error
- func WorktreeList(ctx context.Context, r runner.Runner, repoRoot string) ([]worktree.Worktree, error)
- func WorktreeListPorcelain(ctx context.Context, r runner.Runner, repoRoot string) ([]byte, error)
- func WorktreePrune(ctx context.Context, r runner.Runner, repoRoot string) error
- func WorktreeRemove(ctx context.Context, r runner.Runner, repoRoot string, path string, force bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigGetLocal ¶
func DefaultBaseRef ¶
func IsAncestor ¶
func PrimaryWorktreeRoot ¶
PrimaryWorktreeRoot returns the root directory of the "primary" worktree (the one that contains the common git directory). This is stable across linked worktrees, and prevents accidental nested worktree creation (e.g. <wt>/.wt/<a>/.wt/<b>...).
func RemoteBranches ¶
func WorktreeAddNewBranch ¶
func WorktreeList ¶
func WorktreeListPorcelain ¶
func WorktreePrune ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.