Skip to content

[Enhancement] When comparing 2 commits, use same feature-set as when comparing 2 branches/tags #2645

Description

@goran-w

If we select 2 branches (or 2 tags) in sidebar and select "Compare selected 2 branches" (or "Compare 2 tags") from context menu, then the resulting Compare window has some extra features (which are not present in the "embedded" comparison view resulting from selecting 2 commits in the log-graph) :

  • The left/right (red/green-framed) commit-details boxes show branch/tag "badges" (and if one of them is the current branch it also displays a checkmark next to it).
  • There's a special Changes/Commits selector, which (when switched to Commits) changes the main panel to show two vertically stacked panels for Left-only and Right-only commits.
  • If one of the 2 sides (left/right) is the "current" branch/HEAD, then we can select commits from the other side and choose "Cherry-pick..." from context menu.

NOTE: Parts of this functionality was briefly discussed here.

Image

It would be great if this functionality could be "unified", to be available also when simply selecting 2 commits in the log-graph (which shows a similar but less capable comparison view ) :

  • Show branch/tag badges in the commit-details boxes (when applicable), including the checkmark for current branch (or detached HEAD). Currently, only a HEAD badge (without checkmark) is shown for current branch, it would be better to show actual branch name(s).
  • Display the Changes/Commits selector (at least whenever applicable).
  • Include the "Cherry-pick..." functionality (when possible).
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions