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