Repository navigation
feat(worktree): clone checked-out files from other working copies - #103
Merged
PiquelChips merged 1 commit intoNov 23, 2026
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
force-pushed
the
feat/workspaces-clones
branch
4 times, most recently
from
November 23, 2026 12:30
bdd21ce to
dee892f
Compare
PiquelChips
force-pushed
the
feat/workspaces-clones
branch
2 times, most recently
from
November 23, 2026 18:03
720aa1d to
ff74296
Compare
A checkout read every file it writes from the store, decompressing and verifying it, even where another working copy of the repository has the same file on disk. A checkout can now take `CloneSource`s, other working copies, and clones the files whose stat caches prove them unmodified, or copies them where the file system cannot clone; the first refusal makes it copy from then on. The original is checked again after the clone, and every write would have moved its ctime past the time its entry settled at. Clones get the mode their entry names, since some platforms clone the original's. A source's stat cache is only read while some file has no original yet. Other files are written from the store. The `workspace` benchmark now also copies and clones the tree from another working copy.
PiquelChips
force-pushed
the
feat/workspaces-clones
branch
from
November 23, 2026 21:39
ff74296 to
bc515a8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A checkout read every file it writes from the store, decompressing and verifying it, even when another working copy of the repository already has the same file on disk. This is the copy-on-write half of workspaces, which come next in the stack.
A checkout can now take
CloneSources, which are other working copies:Benchmark: the
workspacebenchmark now also copies and clones the 20,000-file tree from another working copy. SetTMPDIRto a directory on Btrfs, XFS or APFS to measure real clones.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)