worktree

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package worktree manages Git worktree metadata for parallel agent work.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove

func Remove(workspace, id string) error

Types

type Allocation

type Allocation struct {
	ID                 string    `json:"id"`
	Path               string    `json:"path"`
	Ref                string    `json:"ref"`
	CreatedAt          time.Time `json:"created_at"`
	SymlinkDirectories []string  `json:"symlink_directories,omitempty"`
	SparsePaths        []string  `json:"sparse_paths,omitempty"`
}

func Allocate

func Allocate(workspace, name string) (Allocation, error)

func AllocateWithOptions

func AllocateWithOptions(workspace, name string, options Options) (Allocation, error)

func List

func List(workspace string) ([]Allocation, error)

func Load

func Load(workspace, id string) (Allocation, error)

type Options

type Options struct {
	SymlinkDirectories []string
	SparsePaths        []string
}

Jump to

Keyboard shortcuts

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