Repository navigation
Replies: 1 comment
|
Closing as a duplicate of #26851, which tracks the same request. Please follow along there. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem. Every T3 worktree runs a full
git worktree add(GitVcsDriverCore.createWorktree), so each worktree thread writes every tracked file. Large monorepos often keep their working tree small with git sparse checkout, but T3 worktrees cannot use those patterns. For example, a Unity game repository of about 30 GB and 277k files wrote about 90 GB for three worktree threads, and the 1 TB system drive ran out of space. With a non-cone sparse-checkout pattern file, the same repository checks out as 1.79 GB and 63k files in about 36 s. ArunOnWorktreeCreatescript cannot help, because it runs after git has written every file. Bug report: issue 26851.Proposal. An optional
t3.jsonfield,worktreeSparsePatternsPath, that names a repository-relative file of git sparse-checkout patterns in non-cone syntax. When it is set,createWorktreereadst3.jsonand the pattern file from the ref being checked out, then runsworktree add --no-checkout,sparse-checkout set --no-cone --stdin, andcheckout. When it is absent, the git arguments do not change. A missing pattern file fails the create before anything is written, instead of checking out everything.Why it fits. New threads,
delegate_taskisolation, worktree handoff, PR threads and missing-worktree recovery all go throughcreateWorktree, so one change covers them. Checkpoint capture already supports sparse checkouts. The field sits besideworktreeSubmodules, which already letst3.jsonshape how a worktree is created.Related. A comment on discussion 11266 describes the same need from another Unity monorepo. PR 25506 proposed
--no-checkoutwith an external setup script and was closed by its author before review.Implementation. PR 26820 adds the field, the driver change, two worktree tests, a parse case and a docs paragraph.
Done with Claude Opus 5.5 in Claude Code, run from T3 Code, with Claude Fable 5.1 and GPT-6 Astra looped in.
All reactions