Skip to content

Copy the right-clicked commit, not the selection (copy) - #624

Merged
hannesa2 merged 1 commit into
masterfrom
fix-copy-clicked-commit
Sep 13, 2026
Merged

hannesa2 merged 1 commit into
masterfrom
fix-copy-clicked-commit

Conversation

@hannesa2

Copy link
Copy Markdown
Contributor

It's a copy of #621 to have just a artifact to test

Right-clicking a commit that isn't selected opens the menu for that commit, and Checkout, Cherry Pick, Reset and the rest act on it, but Copy SHA, Copy short SHA and Copy Patch still copied whatever was selected. Pasting that SHA into a terminal then acts on the wrong commit.

The copy actions now read the commit(s) the menu item was built for, and fall back to the selection for the Edit menu and key equivalents, which carry none.

Right-clicking a commit that isn't selected opens the menu for that commit,
and Checkout, Cherry Pick, Reset and the rest act on it, but Copy SHA, Copy
short SHA and Copy Patch still copied whatever was selected. Pasting that
SHA into a terminal then acts on the wrong commit.

The copy actions now read the commit(s) the menu item was built for, and
fall back to the selection for the Edit menu and key equivalents, which
carry none.
@hannesa2

Copy link
Copy Markdown
Contributor Author

Screenshot differs: emulatorApi=arm64 with 4 screenshot(s)

setpoint (old) | diff | actual screenshot (new)

00-commit-context-menu.pngscreenshot

01-history-view.pngscreenshot

02-main-window.pngscreenshot

03-staging-view.pngscreenshot

@hannesa2
hannesa2 merged commit f2fc3ed into master Sep 13, 2026
6 checks passed
@hannesa2
hannesa2 deleted the fix-copy-clicked-commit branch September 13, 2026 08:02
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