Skip to content

Add option to fetch others/remote branches from the branch dropdown context menu#176

Merged
pol-rivero merged 12 commits into
pol-rivero:mainfrom
anaseeem:feature/pull-remote-branch
Jun 8, 2026
Merged

Add option to fetch others/remote branches from the branch dropdown context menu#176
pol-rivero merged 12 commits into
pol-rivero:mainfrom
anaseeem:feature/pull-remote-branch

Conversation

@anaseeem

@anaseeem anaseeem commented Jun 4, 2026

Copy link
Copy Markdown

Closes #173

Description

This adds a Pull branch option to the right click context menu for remote
branches in the branch dropdown. Selecting it fetches the specific branch
from the remote, updating its tracking reference without switching branches.

Screenshots

Screenshot From 2026-06-04 22-57-56

Release notes

Notes:

anaseeem added 3 commits June 4, 2026 20:45
Add Pull branch option to the right click context menu for remote branches in the branch dropdown. This allows pulling a remote branch directly without switching to it first.
Add the actual git fetch implementation for the 'Pull branch' context menu option on remote branches. This fetches the specific branch from the remote and refreshes the repository state.

This is a basic prototype - will be refined in follow-up commits.

Refs pol-rivero#173
@anaseeem anaseeem marked this pull request as draft June 4, 2026 22:13
@anaseeem anaseeem marked this pull request as ready for review June 4, 2026 22:17
@pol-rivero

Copy link
Copy Markdown
Owner

Please see #173 (comment) for feedback :)

anaseeem added 9 commits June 7, 2026 21:06
Refactor fetchRemoteBranch to support both remote and local branches with upstream tracking

Restructure context menu to show fetch for non default, non current branches

Improve error handling with merge conflict detection and logging

Remove remoteName requirement from branch context menu config
Rename _fetchRemoteBranch to _fetchRemoteOrLocalBranch

Remove isDefault check from context menu; fetch now available for any noncurrent branch

Wrap fetch operation in withPushPullFetch
- Add RemoteOrLocalBranchFetchProgressParser with appropriate weights

- Move executionOptionsWithProgress setup inside fetchFn for cleaner scope

- Filter both Counting and Compressing objects context lines in progress callback

- Add onRequestAlreadyInProgress callback to withPushPullFetch for user feedback

- Show error popup when fetch is blocked by ongoing push/pull/fetch

- Enable --show-forced-updates flag for local fetch operations
I think fetchSingleBranch is more appropriate than fetchRemoteOrLocalBranch
- Remove onRequestAlreadyInProgress callback from withPushPullFetch
- Give instant feedback to user about concurrrent request
- Remove debug console logs
@anaseeem

anaseeem commented Jun 8, 2026

Copy link
Copy Markdown
Author

The final UI looks like this,
Screenshot From 2026-06-08 20-50-21

@anaseeem

anaseeem commented Jun 8, 2026

Copy link
Copy Markdown
Author

@pol-rivero It is ready for review now. Please feel free to give me any type of feedback. Thank you.

@pol-rivero

Copy link
Copy Markdown
Owner

Everything looks correct. The changes in app-store.ts are way too complex, but don't worry, I'll take it from here and do some simplifications. :)
Let's get this PR merged into main 🎉. Thank you for your contribution!

@pol-rivero pol-rivero merged commit 7ac1793 into pol-rivero:main Jun 8, 2026
18 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.

"Pull"/"Fetch" in branch view

2 participants