Documentation
¶
Index ¶
- func CreateWorktree(repoPath, worktreePath, branch string) error
- func GetUncommittedChangesCount(worktreePath string) (int, error)
- func GetWorktreeBranch(worktreePath string) (string, error)
- func HasUncommittedChanges(worktreePath string) (bool, error)
- func PruneWorktrees(repoPath string) error
- func RemoveWorktree(repoPath, worktreePath string) error
- type WorktreeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWorktree ¶
CreateWorktree creates a new git worktree
func GetUncommittedChangesCount ¶
GetUncommittedChangesCount returns the number of uncommitted changes
func GetWorktreeBranch ¶
GetWorktreeBranch returns the branch name for a worktree
func HasUncommittedChanges ¶
HasUncommittedChanges checks if a worktree has uncommitted changes
func PruneWorktrees ¶
PruneWorktrees prunes stale worktree metadata
func RemoveWorktree ¶
RemoveWorktree removes a git worktree
Types ¶
type WorktreeInfo ¶
WorktreeInfo holds information about a worktree
func ListWorktrees ¶
func ListWorktrees(repoPath string) ([]WorktreeInfo, error)
ListWorktrees lists all worktrees for a repository
Click to show internal directories.
Click to hide internal directories.