Documentation
¶
Overview ¶
Package worktree manages Git worktrees and Jujutsu workspaces for XenForo development environments.
Index ¶
- func CompletionRefs(cmd *cobra.Command, args []string, _ string) ([]cobra.Completion, cobra.ShellCompDirective)
- func CreateWorktree(ctx context.Context, args []string, opts CreateOptions) error
- func List(ctx context.Context, json bool) error
- func ListAll(json bool) error
- func Path(ctx context.Context, name string) error
- func Prune() error
- func RemoveWorktree(ctx context.Context, name string, opts RemoveOptions) error
- type CreateOptions
- type RemoveOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompletionRefs ¶
func CompletionRefs(cmd *cobra.Command, args []string, _ string) ([]cobra.Completion, cobra.ShellCompDirective)
CompletionRefs lists the branches and directory names of this project's worktrees, both of which worktree references accept. Entries are checked against the filesystem because a worktree can be deleted without telling the registry.
func CreateWorktree ¶
func CreateWorktree(ctx context.Context, args []string, opts CreateOptions) error
func RemoveWorktree ¶
func RemoveWorktree(ctx context.Context, name string, opts RemoveOptions) error
Types ¶
type CreateOptions ¶
type RemoveOptions ¶
Click to show internal directories.
Click to hide internal directories.