Add option to fetch others/remote branches from the branch dropdown context menu#176
Merged
Merged
Conversation
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
Owner
|
Please see #173 (comment) for feedback :) |
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
Author
Author
|
@pol-rivero It is ready for review now. Please feel free to give me any type of feedback. Thank you. |
Owner
|
Everything looks correct. The changes in |
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.

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
Release notes
Notes: