MCPcopy
hub / github.com/dagger/container-use / getWorktreePath

Method getWorktreePath

repository/repository.go:68–70  ·  view source on GitHub ↗

getWorktreePath returns the path for storing worktrees

()

Source from the content-addressed store, hash-verified

66
67// getWorktreePath returns the path for storing worktrees
68func (r *Repository) getWorktreePath() string {
69 return filepath.Join(r.basePath, "worktrees")
70}
71
72func Open(ctx context.Context, repo string) (*Repository, error) {
73 return OpenWithBasePath(ctx, repo, cuGlobalConfigPath)

Callers 1

WorktreePathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected