GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feature: drag a branch onto another branch to open a context menu with actions between them by bertyhell · Pull Request #2884 · sourcegit-scm/sourcegit

Conversation

@bertyhell

@bertyhell bertyhell commented Nov 11, 2026

Copy link
Copy Markdown

Summary

Drag a branch onto another branch to open a context menu with only the actions between those two branches.

  • Works in the branch trees and on branch labels in the commit graph (also across them)
  • Menu: Compare, Merge (when the target is checked out), Rebase / Interactive rebase (when the dragged branch is checked out), Create PR (local branches resolve to their upstream; cross-fork supported on GitHub)
  • While dragging: the dragged branch is faded, the branch under the pointer is highlighted, and a source → target label follows the pointer
  • Shared logic lives in BranchDragDrop; Remote.TryGetCreatePullRequestURL gained an overload with an explicit target branch

Screenshots

Dragging feature/drag-branch-onto-branch onto master in the graph:

Dragging a branch in the graph

The resulting menu:

Menu after dropping

Merge is greyed out here because master is not checked out; Create PR is greyed out because the dragged branch had not been pushed yet.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
bertyhell and others added 3 commits November 11, 2026 14:12
@bertyhell @claude
feature: drag a branch onto another branch to open a context menu wit…
0d0019f
…h actions between them

- Dropping branch S onto branch T opens a menu with: compare S with T, merge S
  into T (when T is current), rebase / interactive rebase S on T (when S is
  current) and create a PR from S into T (local branches resolve to their upstream)
- Works within and across the local and remote branch trees
- While dragging, the source row is faded, the row under the pointer is
  highlighted and a label (`source → target`) follows the pointer
- Add `Remote.TryGetCreatePullRequestURL` overload with an explicit target
  branch (cross-fork PRs supported for GitHub)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bertyhell @claude
feature: support dragging branches in the commit graph onto other bra…
11bc3f4
…nches

- Branch labels in the commit graph can be dragged onto other branch labels in
  the graph or onto branches in the branch trees (and vice versa), opening the
  same context menu with the actions between the two branches
- While dragging, the dragged label in the graph is faded and the label under
  the pointer is highlighted
- Move the drag state, pointer label and branch-pair context menu out of
  `BranchTree` into a shared `BranchDragDrop` helper
- Add `CommitRefsPresenter.HitTestDecorator` for precise label hit-testing

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bertyhell @claude
docs: add screenshots of dragging a branch onto another branch
3517a42
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@bertyhell
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.