Documentation
¶
Index ¶
- Constants
- func Checkpoint(root string) error
- func CreateShadow(root, name string) error
- func DeleteShadow(root, name string) error
- func DisableGitNative(root string) error
- func EnableGitNative(root string) error
- func GitNativeEnabled(root string) bool
- func GitPath(root, name string) (string, error)
- func Head(root string) (string, error)
- func InstallHook(root string) error
- func IsClean(root string) bool
- func ListShadows(root string) ([]string, error)
- func MainRepoRoot(root string) (string, error)
- func RestoreShadow(root, name, dest string) error
- func RevParse(root, ref string) (string, error)
- func UninstallHook(root string) error
- func WorktreeAdd(root, path, head string) error
- func WorktreeList(root string) ([]string, error)
- func WorktreeRemove(root, path string, force bool) error
Constants ¶
const CheckpointBranch = "trace/checkpoints/v1"
Variables ¶
This section is empty.
Functions ¶
func Checkpoint ¶
Checkpoint commits the current .trace state to the hidden branch trace/checkpoints/v1 without touching the user's working branch.
func CreateShadow ¶
CreateShadow creates a short-lived shadow branch from the current HEAD.
func DeleteShadow ¶
DeleteShadow removes a shadow branch.
func DisableGitNative ¶
DisableGitNative removes the opt-in marker.
func EnableGitNative ¶
EnableGitNative creates the opt-in marker.
func GitNativeEnabled ¶
func InstallHook ¶
func ListShadows ¶
ListShadows returns shadow branch names.
func MainRepoRoot ¶
MainRepoRoot returns the top-level of the repository that owns this worktree. For a normal clone it is root itself; for a linked worktree it is the main checkout that created it.
func RestoreShadow ¶
RestoreShadow checks out the shadow branch into a new worktree for rewind.
func UninstallHook ¶
func WorktreeAdd ¶
func WorktreeList ¶
func WorktreeRemove ¶
Types ¶
This section is empty.