gitutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpWorkerState

func DumpWorkerState(sessionName, workDir, workerName string) (string, error)

DumpWorkerState captures git state for debugging. Returns the path to the dump file.

func IsWorktreeClean

func IsWorktreeClean(workDir string) (bool, error)

IsWorktreeClean checks whether the worktree has uncommitted changes. Returns (true, nil) if clean, (false, nil) if dirty, or (false, err) if the git command itself failed (e.g. missing directory, timeout).

func RemoveWorktree

func RemoveWorktree(projectDir, workDir, branch string) error

RemoveWorktree removes a git worktree and its branch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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