-
Is it possible to create a new worktree for a local repository? There is indeed a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The Since |
Beta Was this translation helpful? Give feedback.
The
Worktree
doesn't have any capability to mutate itself yet, nor is there a way to create an official worktree likegit worktree add
does. However, creating worktree checkouts is relatively straightforward with gix::worktree::state::checkout(). Further, you could create a worktree_stream which allows to examine the whole worktree (as it would be checked out) in memory in a streaming fashion.Since
cargo-binstall
controls these directories, getting a plain checkout should be enough.