Parallelise worktree checkout #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem:
git worktree addraces on a shared mirror (failed to read worktrees/<x>/commondir), so worktree commands are serialised per repo. A cold 300-env deploy then pays ~0.27s per add serially.Proposal: serialise only
git worktree add --no-checkout(metadata), then run the checkout (git -C <wt> checkout/reset --hard) in parallel under the-jslots.Acceptance: cold 300-env deploy at -j8 shows no commondir failures across 12 runs and is no slower than the unserialised baseline (~16s on the bench repo).