Skip to content

feat(fetch): emit git-fetch-like output with real-time progress#158

Merged
avihut merged 1 commit intomasterfrom
daft-149/fetch-emit
Feb 3, 2026
Merged

feat(fetch): emit git-fetch-like output with real-time progress#158
avihut merged 1 commit intomasterfrom
daft-149/fetch-emit

Conversation

@avihut
Copy link
Owner

@avihut avihut commented Feb 3, 2026

Summary

  • Let git pull's stdout/stderr flow to the terminal via Stdio::inherit() so remote progress, ref updates, and fast-forward summaries are visible
  • Migrate fetch.rs to the Output trait (consistent with the recently updated prune.rs)
  • Add header (Fetching origin / URL: ...), per-worktree result lines ([fetched]/[skipped]/[failed]), and a clean pluralized summary

Fixes #149

Test plan

  • cargo fmt — clean
  • cargo clippy -- -D warnings — clean
  • just test-unit — 157 passed
  • just test-integration-fetch — all 15 tests passed
  • Manual test: run git-worktree-fetch in a real repo and verify git output is visible

🤖 Generated with Claude Code

Let git pull's stderr/stdout flow directly to the terminal via
Stdio::inherit() instead of capturing and suppressing it. This makes
remote progress, ref updates, and fast-forward summaries visible.

Also migrates fetch.rs to the Output trait (consistent with prune.rs),
adds a header (Fetching origin / URL), per-worktree result lines
([fetched]/[skipped]/[failed]), and a clean pluralized summary.

Fixes #149

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@avihut avihut added this to the v1.1.0 milestone Feb 3, 2026
@avihut avihut added enhancement New feature or request feat New feature labels Feb 3, 2026
@avihut avihut self-assigned this Feb 3, 2026
@avihut avihut merged commit 76e3721 into master Feb 3, 2026
5 checks passed
@avihut avihut deleted the daft-149/fetch-emit branch February 3, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feat New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

worktree-fetch should emit something similar to git fetch origin branch:branch

1 participant