Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOptions ¶
type DirtyMainWorktreeError ¶
type DirtyMainWorktreeError struct {
Path string
}
func (*DirtyMainWorktreeError) Error ¶
func (e *DirtyMainWorktreeError) Error() string
type InitOptions ¶
type InitResult ¶
func Init ¶
func Init(opts InitOptions) (InitResult, error)
type MigrateOptions ¶
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 UpgradeResult ¶
type UpgradeResult struct {
Directory string
CreatedGitFile bool
CreatedConfig bool
AddedKeys []string
}
func Upgrade ¶
func Upgrade(opts UpgradeOptions) (UpgradeResult, error)
Click to show internal directories.
Click to hide internal directories.