worktree

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package worktree manages Git worktrees and Jujutsu workspaces for XenForo development environments.

Index

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 List

func List(ctx context.Context, json bool) error

func ListAll

func ListAll(json bool) error

func Path

func Path(ctx context.Context, name string) error

func Prune

func Prune() error

func RemoveWorktree

func RemoveWorktree(ctx context.Context, name string, opts RemoveOptions) error

Types

type CreateOptions

type CreateOptions struct {
	Base, AdminUser, AdminPassword, AdminEmail, Title, Instance string
	NoSetup, NoUp, JSON, Fresh, SkipBuildJS                     bool
}

type RemoveOptions

type RemoveOptions struct {
	Force          bool
	KeepContainers bool
	Verbose        bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL