worktree

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality and error definitions.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Package worktree provides worktree management functionality for CM.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Worktree errors.
	ErrWorktreeExists      = errors.New("worktree already exists")
	ErrWorktreeNotInStatus = errors.New("worktree not found in status file")

	// Directory errors.
	ErrDirectoryExists = errors.New("directory already exists")

	// User interaction errors.
	ErrDeletionCancelled = errors.New("deletion cancelled by user")
)

Error definitions for worktree package.

Functions

This section is empty.

Types

type AddToStatusParams

type AddToStatusParams = interfaces.AddToStatusParams

AddToStatusParams contains parameters for adding worktree to status.

type CreateParams

type CreateParams = interfaces.CreateParams

CreateParams contains parameters for worktree creation.

type DeleteParams

type DeleteParams = interfaces.DeleteParams

DeleteParams contains parameters for worktree deletion.

type NewWorktreeParams

type NewWorktreeParams = interfaces.NewWorktreeParams

NewWorktreeParams contains parameters for creating a new Worktree instance.

type ValidateCreationParams

type ValidateCreationParams = interfaces.ValidateCreationParams

ValidateCreationParams contains parameters for worktree creation validation.

type ValidateDeletionParams

type ValidateDeletionParams = interfaces.ValidateDeletionParams

ValidateDeletionParams contains parameters for worktree deletion validation.

type Worktree

type Worktree = interfaces.Worktree

Worktree interface provides worktree management capabilities. This interface is now defined in pkg/worktree/interfaces to avoid circular imports.

func NewWorktree

func NewWorktree(params NewWorktreeParams) Worktree

NewWorktree creates a new Worktree instance.

Directories

Path Synopsis
Package interfaces defines the worktree interface for dependency injection.
Package interfaces defines the worktree interface for dependency injection.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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