Repository navigation
0.1.1: conflicts hold landing, closed and merged pull requests, merged stacks, safe undo, parallel new, gft drop - #11
Conversation
- land refuses files that still have conflict markers from sync (--allow-conflicts publishes them); sync exits 2 and keeps naming them, and status lists them - land checks the pull request: a merged one takes no more commits (sync, then land opens a new one); a closed one stops land (reopen it, or --new-pr); a first landing onto an existing graft/NAME takes graft/NAME-2 - sync after the copy's pull request, or the one it was built on, is merged merges upstream from what that pull request landed, so the merged work never conflicts; a stacked copy then builds on main and its open pull request is retargeted on the next landing - undo saves the copy first and keeps newer snapshots, so undo again returns; syncs that change nothing keep no snapshot - gft new run at once in many places waits its turn on the default branch and reuses a fetch from the last ten seconds - gft drop removes a whole project; rm removes the emptied folder 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: ef951a14ac
ℹ️ 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".
…ers after undo, match merged stacks by commit - a sync that fails keeps its 'before sync' snapshot: it may have changed files before failing - gft drop refuses when the home copy of a repository has changed files, unless --force - land looks for Graft's conflict markers in every changed file, and undo records the ones a snapshot brings back - a merged pull request counts for a stacked copy only if it carried that copy's landing, not any earlier use of the branch name 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: 665274ae07
ℹ️ 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".
…s own branch with --force 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: 2ff1fb39eb
ℹ️ 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".
…ly into the default branch 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.
ℹ️ 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".
…he default branch 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: a67fa0b635
ℹ️ 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".
…rough another branch 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: 4030c70822
ℹ️ 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".
Fixes the must-fix list from two hands-on reviews of 0.1.0 (an hour across click, sandfs, vscode, go and a sandbox repo; and 118 invocations across pytest and Kubernetes), and adds a way to remove a whole project.
What changes
syncrecords the files it left with markers;landrefuses while any still have them (--allow-conflictspublishes them anyway).syncexits with 2 and names them for as long as they're left, including on a later sync with nothing new, andstatuslists them.landreads the pull request's state first. Merged: aftersync, the copy lands as a new pull request (before syncing,landsays to sync). Closed without merging:landstops; reopen it, or--new-propens another. A first landing onto agraft/NAMEthat already exists (an earlier copy's of the same name) goes tograft/NAME-2, with none of its history, instead of refusing or inheriting it.new --on) is squash-merged,syncmerges upstream's version from what that pull request landed (read from GitHub), not from the old base, so the merged work never conflicts. The copy then builds on the default branch: an open pull request is retargeted on the next landing, and one GitHub closed with the deleted branch is replaced by a new one. The copy's own merged pull request is handled the same way.undoloses nothing. It saves the copy first (unless its newest snapshot already has it) and keeps newer snapshots, soundoagain returns. Syncs that change nothing, or fail, keep no "before sync" snapshot.gft new. Calls run at once wait their turn on the default branch (a lock of Graft's) instead of failing with "_mainis in use by sandfs update", and skip the update when it was fetched in the last 10 seconds.gft drop [PROJECT]removes every copy (refusing ones with unlanded work unless--force), the home copy's mount and Graft's record, sogetcan start over. A plain folder or checkout is left as it is.rmnow removes the emptied folder, and a busy unmount on macOS gets Graft's own "leave the folder" message.Tests
New end-to-end tests on a real mount and the stand-in GitHub (which now answers pull request state, compare and contents): conflicts held until settled; closed and merged pull requests; a stack whose parent is squash-merged and branch deleted, plus one whose pull request stays open and is retargeted; undo and redo; eight
gft newat once after upstream moved;droprefusing then forcing, andgetagain. The "taken branch" case now expectsgraft/taken-2.Next, in a follow-up: remount and
gft up, rename detection, fastls, the home-copy model, folder 3-way merge, sync after local commits,diff/--json, fewer API calls per landing, and the README pitch.Generated by Claude Code