feat: add git-worktree-fetch command to update worktree branches#66
Merged
feat: add git-worktree-fetch command to update worktree branches#66
Conversation
Add a new command that updates worktree branches from their remote tracking branches by navigating to each target worktree and running `git pull`. Features: - Update current worktree, specific worktrees, or all worktrees (--all) - Skip worktrees with uncommitted changes (override with --force) - Dry-run mode to preview actions (--dry-run) - Configurable pull behavior: --rebase, --autostash, --ff-only, --no-ff-only - Pass-through arguments to git pull (-- <args>) - Config-based defaults via daft.fetch.args (default: --ff-only) Fixes #11 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add missing symlinks for git-worktree-fetch and git-worktree-carry commands in the CI workflow to ensure integration tests can find these commands. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The get_all_worktrees function was including the bare repository directory itself when processing git worktree list output. Fixed by properly parsing the porcelain format and checking for the 'bare' indicator line that follows bare repository entries. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
avihut
added a commit
that referenced
this pull request
Jan 24, 2026
* feat: add git-worktree-fetch command to update worktree branches Add a new command that updates worktree branches from their remote tracking branches by navigating to each target worktree and running `git pull`. Features: - Update current worktree, specific worktrees, or all worktrees (--all) - Skip worktrees with uncommitted changes (override with --force) - Dry-run mode to preview actions (--dry-run) - Configurable pull behavior: --rebase, --autostash, --ff-only, --no-ff-only - Pass-through arguments to git pull (-- <args>) - Config-based defaults via daft.fetch.args (default: --ff-only) Fixes #11 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix(ci): add git-worktree-fetch and git-worktree-carry symlinks Add missing symlinks for git-worktree-fetch and git-worktree-carry commands in the CI workflow to ensure integration tests can find these commands. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix(fetch): skip bare repositories in --all mode The get_all_worktrees function was including the bare repository directory itself when processing git worktree list output. Fixed by properly parsing the porcelain format and checking for the 'bare' indicator line that follows bare repository entries. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
git-worktree-fetchcommand that updates worktree branches from their remote tracking branchesgit pullwith configurable options--all)--force)daft.fetch.args(default:--ff-only)Test plan
cargo clippy -- -D warnings- no warningscargo fmt -- --check- properly formattedcargo test --lib- all 78 unit tests passgit-worktree-fetch --helpworks correctlyjust test-integration-fetchFixes #11
🤖 Generated with Claude Code