gitx

package
v1.1.0-solo.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const CheckpointBranch = "trace/checkpoints/v1"

Variables

This section is empty.

Functions

func Checkpoint

func Checkpoint(root string) error

Checkpoint commits the current .trace state to the hidden branch trace/checkpoints/v1 without touching the user's working branch.

func CreateShadow

func CreateShadow(root, name string) error

CreateShadow creates a short-lived shadow branch from the current HEAD.

func DeleteShadow

func DeleteShadow(root, name string) error

DeleteShadow removes a shadow branch.

func DisableGitNative

func DisableGitNative(root string) error

DisableGitNative removes the opt-in marker.

func EnableGitNative

func EnableGitNative(root string) error

EnableGitNative creates the opt-in marker.

func GitNativeEnabled

func GitNativeEnabled(root string) bool

func GitPath

func GitPath(root, name string) (string, error)
func Head(root string) (string, error)

func InstallHook

func InstallHook(root string) error

func IsClean

func IsClean(root string) bool

func ListShadows

func ListShadows(root string) ([]string, error)

ListShadows returns shadow branch names.

func MainRepoRoot

func MainRepoRoot(root string) (string, error)

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

func RestoreShadow(root, name, dest string) error

RestoreShadow checks out the shadow branch into a new worktree for rewind.

func RevParse

func RevParse(root, ref string) (string, error)

func UninstallHook

func UninstallHook(root string) error

func WorktreeAdd

func WorktreeAdd(root, path, head string) error

func WorktreeList

func WorktreeList(root string) ([]string, error)

func WorktreeRemove

func WorktreeRemove(root, path string, force bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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