Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle worktrees in subdirectories properly #31

Closed
hakoerber opened this issue Jun 8, 2022 · 1 comment
Closed

Handle worktrees in subdirectories properly #31

hakoerber opened this issue Jun 8, 2022 · 1 comment

Comments

@hakoerber
Copy link
Owner

hakoerber commented Jun 8, 2022

Currently, the following behaviour is quite weird:

$ grm wt add x/branch

This creates a branch called branch (unexpected) inside the directory x/branch (expected). It's also weird, because the following will fail:

$ grm wt add x/branch
$ grm wt delete x/branch
[✘] Branch "branch" is checked out in worktree, this does not look correct

The docs say:

The branch inside the worktree is always the same as the directory name of the worktree.

So the branch name should be x/branch as well. Note that the worktree cannot contain slashes, so this may be a bit ugly to set up.

@hakoerber
Copy link
Owner Author

Fixed with worktree rework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant