Repository navigation
Copies of plain folders, landing back into the folder; sync in place - #3
Conversation
gft get FOLDER makes a plain folder a project whose home copy is the folder itself. Its copies are sandfs forks of the folder as it is when made, land writes their changes back into the folder (refused if the folder changed one of those files since), and sync moves them onto the folder as it is now. sync no longer unmounts: sandfs moves the mounted copy in place, so an agent can sync from inside its copy while its programs keep running there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 234c29cd48
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
undo compares a copy's base with a snapshot's to decide whether it can restore in place, so two bases taken in one second must differ. Folder bases are now SECONDS.NANOS. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04092d8eb9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A folder project may sit inside another one; commands inside the inner one used to reach whichever project came first. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq
|
CI is red, and it is expected for now. CI installs sandfs from main. Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq
What changes
Graft now works on plain folders as well as GitHub repositories, which Sonny needs.
syncalso stops unmounting the copy.Plain folders.
gft get ./notes(or any folder path) turns a folder that isn't a git repository into a project, and the folder itself is the home copy.gft new NAMEmakesnotes+NAME: a sandfs fork of the folder as it is at that moment. The files are cloned, so they take no space, but this needs APFS, btrfs or XFS.gft landwrites the copy's changes into the folder withsandfs changes --copy-to. If the folder changed one of those files since the copy was made or last synced, the whole landing is refused. After a successful landing the copy moves onto the folder as it is now, so it has no changes left.gft syncmoves the copy onto the folder as it is now. A file changed on both sides keeps the copy's version and is listed, because a folder keeps no older version to merge from.ls,status,changes,save,undoandrmwork as before. Projects are stored asfolder/NAME.land -m/--body/--draftandchangeson the folder itself are refused with a clear message.gft get OWNER/NAME.Sync in place.
synccallssandfs updateon the mounted copy and no longer unmounts it. A shell or agent working inside the copy carries on. This depends on lydakis/sandfs#166, and the README's Needs section says so.CI
The plain-folder test needs a disk that clones files. The workflow now mounts a small btrfs loop disk and points
TMPDIRat it; elsewhere the test skips with a message. CI will only run once the repo is public.Tests
copies_of_a_plain_folder_land_back_into_itcovers:rm.src/.cargo fmt,clippy -D warningsandcargo testwithGRAFT_REQUIRE_SANDFS=1pass against sandfs built from #166, withTMPDIRon btrfs. On ext4 the folder test skips as intended.Generated by Claude Code