MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / WorktreePathForPRD

Function WorktreePathForPRD

internal/git/worktree.go:184–186  ·  view source on GitHub ↗

WorktreePathForPRD returns the worktree path for a given PRD name.

(baseDir, prdName string)

Source from the content-addressed store, hash-verified

182
183// WorktreePathForPRD returns the worktree path for a given PRD name.
184func WorktreePathForPRD(baseDir, prdName string) string {
185 return filepath.Join(baseDir, ".chief", "worktrees", prdName)
186}
187
188// PruneWorktrees runs `git worktree prune` to clean up stale worktree tracking.
189func PruneWorktrees(repoDir string) error {

Callers 4

startLoopForPRDMethod · 0.92
TestWorktreePathForPRDFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWorktreePathForPRDFunction · 0.68