Repository navigation
feat(graph): Compare With… a branch, tag or SHA from a commit's menu (#123) - #129
Merged
Merged
Conversation
Right-click any commit in the Commit Graph (panel, editor tab or Commits
rail) and choose Compare With…: a picker lists every local branch, remote
branch (a remote's HEAD pointer left out) and tag, plus "Enter a commit
SHA…". The choice opens the existing Compare panel from the commit to it, in
"All differences" mode: the other side need not contain the commit, and
"what an older tag adds" would be nothing. Files open through the existing
diff routing, so gitstudio.diff.comparisonIn applies.
Refs are picked and compared by their FULL names, so a tag and a branch of
one name stay apart; a typed SHA is resolved with rev-parse --verify
<x>^{commit} (an option-like text never reaches git) and asked again, with
the reason, when it names no commit. The panel's own base/compare pickers
and the palette entry use the same picker.
The panel now names each side the way a person reads it: a short sha, a ref
without refs/heads/ — the tab title, the pills, the summary and the diff
titles used to show forty-character SHAs for Compare These Two Commits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Awesome, thank you very much! |
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 #123.
Tests: unit tests for the ref picker and compare panel plus the l10n catalog check pass locally (
verify --fastOK).🤖 Generated with Claude Code