pinwheel: Add wt for git worktrees beside the primary checkout
`wt <branch>` goes to the worktree holding a branch, creating one in `<primary>.worktrees/<branch>` if needed; `wt -c` starts a new Graphite-tracked branch off main in its own worktree; `wt rm` removes one and keeps the branch. A new worktree gets `direnv allow` only when its `.envrc` matches the primary's. In backend it also gets a `.pants.rc` pinning `find_links` to the primary's `dist/`: `pants.toml` sets it to the checkout's own path, which put the path into every `requirements.pex` cache key and made each worktree rebuild them. No lockfile resolves from it.
This commit is contained in:
2 files changed
+79
No files matched your search
@@ -40,6 +40,8 @@ in
|
||||
|
||||
autoload -Uz add-zsh-hook
|
||||
add-zsh-hook precmd _nix_direnv_bridge_hook
|
||||
|
||||
source ${./wt.zsh}
|
||||
'';
|
||||
|
||||
# Configure IntelliJ to exclude .direnv from indexing
|
||||
|
||||
Reference in new issue
Block a user