Skip to content

land --dry-run, new --on, start from a local checkout, measured comparison with worktrees - #10

Merged
lydakis merged 5 commits into
mainfrom
claude/project-thread-wdmsae
Oct 26, 2026
Merged

lydakis merged 5 commits into
mainfrom
claude/project-thread-wdmsae

Conversation

@lydakis

@lydakis lydakis commented Oct 26, 2026

Copy link
Copy Markdown
Owner

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.
  • "Depends on" vs "alternative". gft new NAME --on COPY builds 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 COPY now 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. sync follows the checkout's branch. Copies land on its origin on GitHub, or on --github. If the base commit isn't on GitHub, land says to push it first.
  • What land sends. 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.
  • Wording. The README, crate description and --help no 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 because gft new asks 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), --on refusal and stacking, --from against 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 test passes on Linux with FUSE, and clippy is clean.


Generated by Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T05:13:32.449775Z d4f3fa0 New commits
🔒 Security Review ✅ Completed 2026-10-26T05:15:55.472263Z d4f3fa0 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/land.rs Resolved
Comment thread src/lib.rs Resolved
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
@lydakis
lydakis merged commit 050555b into main Oct 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants