gitsej

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, opts CreateOptions) (string, error)

Types

type CreateOptions

type CreateOptions struct {
	RepoURL      string
	Directory    string
	MainWorktree bool
	MainBranch   string
}

type DirtyMainWorktreeError

type DirtyMainWorktreeError struct {
	Path string
}

func (*DirtyMainWorktreeError) Error

func (e *DirtyMainWorktreeError) Error() string

type InitOptions

type InitOptions struct {
	Directory  string
	MainBranch string
}

type InitResult

type InitResult struct {
	Directory      string
	CreatedGitFile bool
	CreatedConfig  bool
}

func Init

func Init(opts InitOptions) (InitResult, error)

type MigrateOptions

type MigrateOptions struct {
	Directory      string
	MainBranch     string
	ForceMainClean bool
}

type MigrateResult

type MigrateResult struct {
	Directory             string
	MainBranch            string
	CreatedConfig         bool
	MovedWorktrees        []string
	CreatedMainWorktree   string
	RemovedRootEntries    []string
	DetectedDirtyMainPath string
}

func Migrate

func Migrate(ctx context.Context, opts MigrateOptions) (MigrateResult, error)

type UpgradeOptions

type UpgradeOptions struct {
	Directory  string
	MainBranch string
}

type UpgradeResult

type UpgradeResult struct {
	Directory      string
	CreatedGitFile bool
	CreatedConfig  bool
	AddedKeys      []string
}

func Upgrade

func Upgrade(opts UpgradeOptions) (UpgradeResult, error)

Jump to

Keyboard shortcuts

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