Skip to content

Add branch selection, live clone progress and destination preview - #3

Merged
ciao22king merged 1 commit into
mainfrom
feat/branch-selection-and-clone-progress
Oct 3, 2026
Merged

ciao22king merged 1 commit into
mainfrom
feat/branch-selection-and-clone-progress

Conversation

@ciao22king

Copy link
Copy Markdown
Owner

Summary

This PR finishes three items from the README roadmap and keeps the repo on a single main branch.

Branch cleanup

  • gofetch-hardening-cross-platform was already fully merged into main (identical trees), so it has been deleted. Only main remains.

New features

  • Optional branch selection — a new branch step in the TUI between the URL and the destination. Leave it empty to clone the remote's default branch. --branch <name> is also available as a CLI flag and skips the prompt.
  • Live clone progress — git clone --progress output is streamed into the cloning screen (last 8 lines, bounded buffer) instead of a frozen spinner, alongside a per-second elapsed timer.
  • Destination preview — the destination screen now shows the exact absolute path git will write to before the clone starts, plus the selected branch.

Details

  • cloneRepository now takes a branch argument and an optional progress channel, and drains git's stderr on a separate goroutine so a slow UI can never block git.
  • New friendly error for a missing remote branch.
  • Version bumped to 0.5.0; README updated (usage, shortcuts, roadmap).

Testing

  • gofmt, go build ./..., go vet ./..., go test ./... and go test -race ./... all pass locally.
  • Cross-compilation verified for linux/amd64, darwin/arm64 and windows/amd64.
  • New tests: branch flow (empty/captured/rejected/Esc), --branch initial state, end-to-end clone of a specific branch, progress streaming, bounded progress log, view smoke test for every screen.

This PR was created by an AI agent (OpenHands) on behalf of the user.

@ciao22king can click here to continue refining the PR

- New optional branch step in the TUI plus a --branch CLI flag
- Stream git clone --progress output into the cloning screen
- Show the absolute clone destination before cloning starts
- Bump version to 0.5.0 and update the README

Co-authored-by: openhands <openhands@all-hands.dev>
@ciao22king
ciao22king marked this pull request as ready for review October 3, 2026 07:33
@ciao22king
ciao22king merged commit 50d2057 into main Oct 3, 2026
4 checks passed
@ciao22king
ciao22king deleted the feat/branch-selection-and-clone-progress branch October 3, 2026 07:34
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