What problem does this solve?
Currently need to provide an absolute worktree path in settings. Our convention at work is to have worktrees under the project in a hidden folder. I tried using a relative path (./.worktrees/), but it becomes /Users/kieran/.worktrees/
Proposed solution
Treat worktree paths not starting with / as paths relative to the project root. So a project root of /Users/kieran/Work/api/, and a relative worktree path of './.worktrees/would put worktrees for that project at/Users/kieran/Work/api/.worktrees/`. This should be confugurable globally or per project.
Alternatives considered
No response
Supacode version
No response
Are you planning to build this yourself?
Before submitting
What problem does this solve?
Currently need to provide an absolute worktree path in settings. Our convention at work is to have worktrees under the project in a hidden folder. I tried using a relative path (
./.worktrees/), but it becomes /Users/kieran/.worktrees/Proposed solution
Treat worktree paths not starting with
/as paths relative to the project root. So a project root of/Users/kieran/Work/api/, and a relative worktree path of './.worktrees/would put worktrees for that project at/Users/kieran/Work/api/.worktrees/`. This should be confugurable globally or per project.Alternatives considered
No response
Supacode version
No response
Are you planning to build this yourself?
ready.Before submitting
ready.