Repository navigation
land --dry-run, new --on, start from a local checkout, measured comparison with worktrees - #10
Merged
Merged
Conversation
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: 76b05899d5
ℹ️ 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 checkout without origin/HEAD now asks GitHub for the default branch instead of taking the checked-out one, and land --dry-run refuses a copy whose starting commit GitHub doesn't have, as a real land would. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq
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.
These are the remaining items from the outside review of 7fad8fb, on top of #9.
gft land --dry-run(-n) previews what a landing would publish without changing anything. It prints the branch and where it moves from, the commit's parents, the pull request (new, or the open one it updates, and its base) and the files. It refuses in the same cases a real landing would.gft new NAME --on COPYbuilds on top of a copy that has landed: its PR goes against that copy's branch and shows only its own changes. A copy that hasn't landed is refused, with a hint.--from COPYnow always starts a separate attempt: its PR goes against the default branch with all the changes. The two flags conflict.gft get .on a git checkout. The checkout becomes the home copy. Copies start from its commit plus its uncommitted changes, via sandfs fork of a clone.syncfollows the checkout's branch. Copies land on its origin on GitHub, or on--github. If the base commit isn't on GitHub,landsays to push it first.landsends. A new README section covers it: bytes as on disk (no clean filters or eol conversion,hash-object --no-filters), LFS pointer files, no hooks, unsigned commits, local commits ignored, submodules untouched.--helpno longer say "instant". They describe fast creation over shared files that are fetched as they're read, including that the first whole-tree read waits for the downloads.docs/compared-with-worktrees.md. A measured comparison against a clone plus worktrees on lydakis/sandfs, cold and warm. Worktrees are faster to create on a small repository, mostly becausegft newasks GitHub for the newest commit. Copies use almost no disk until written to. Builds cost the same disk either way and run about 20% slower through the mount. The doc also cites the earlier VS Code measurements, and says what wasn't measured: time to a real PR, and recovery after an interrupted landing.Tests: new end-to-end coverage for dry runs (first landing, stacked, forced),
--onrefusal and stacking,--fromagainst main, and a checkout project: its origin refused without--github, uncommitted work copied, the commit as parent, and sync after a commit in the checkout.cargo testpasses on Linux with FUSE, and clippy is clean.Generated by Claude Code