Skip to content

Relative worktree paths #840

Description

@KieranP

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?

  • I intend to open a pull request once this is approved and marked ready.

Before submitting

  • I searched existing issues and this is not a duplicate.
  • I understand feature pull requests are closed until the issue is marked ready.
  • I agree to follow this project's Code of Conduct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions