Skip to content

feature: add Avatars commit graph style - #2779

Open
bertyhell wants to merge 3 commits into
sourcegit-scm:developfrom
bertyhell:feature/bigger-git-tree
Open

bertyhell wants to merge 3 commits into
sourcegit-scm:developfrom
bertyhell:feature/bigger-git-tree

Conversation

@bertyhell

@bertyhell bertyhell commented Oct 12, 2026 •

Copy link
Copy Markdown

Adds a "Commit Graph Style" option in Preferences > Appearance (Classic stays the default).

pr-closeup

full width:
pr-overview

settings appearance option:
image

user tooltips
pr-tooltip

right click column titles also opens the column options:
pr-columns-menu

The Avatars style shows:

  • a resizable GRAPH column with author avatars (or initials) as nodes, small dots for merges, rounded straight lines and lane colored row bands
  • a COMMIT MESSAGE column with the branches / tags in front of the message (same as the classic style), with left-aligned column headers

Also:

  • tooltip on graph avatars with author and date
  • right-click on column headers opens the history options menu
  • align the graph overlay with the rows below the header separator

Adds a "Commit Graph Style" option in Preferences > Appearance (Classic stays the default).

The `Avatars` style shows:
- a resizable BRANCH / TAG column with left-aligned refs, connector lines to the commit, a `+N` badge with a dropdown for refs that do not fit, and tooltips for trimmed names
- a resizable GRAPH column with author avatars (or initials) as nodes, small dots for merges, rounded straight lines and lane colored row bands
- a separate COMMIT MESSAGE column, with left-aligned column headers

Also:
- tooltip on graph avatars with author and date
- right-click on column headers opens the history options menu
- align the graph overlay with the rows below the header separator

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@love-linger

Copy link
Copy Markdown
Collaborator

This implementation cannot meet the requirement of quickly browsing branch status (some refs are folded) and is also a waste of horizontal space. I have replied in more than one ISSUE that SourceGit does not intend to adopt this design philosophy.

@love-linger love-linger self-assigned this Oct 13, 2026
@love-linger love-linger added the not-planned It's not planned in the future label Oct 13, 2026
@bertyhell

bertyhell commented Oct 13, 2026 •

Copy link
Copy Markdown
Author

so if the branches stay in the description column this would be acceptable?

personally i have a widescreen, so plenty of space
but it's true that some people work on smaller screens
that's why i made it an option and not the default

@love-linger

Copy link
Copy Markdown
Collaborator

Even for widescreens, lots of users will enable the Horizontal history layout to see more commits. For example:

image

@bertyhell

Copy link
Copy Markdown
Author

hmm, i see
we can also gain some width, since the author column isn't that needed anymore with the avatars
but that depends a lot on the project. if you know the people or if it's opensource
one option could be to hide the author column when you switch to this git tree visualisation (you can still re-enable it by right clicking the column headers or the column options button)

anyway, if anyone else wants to play around with the tree visualisations, you can try a dev build here:
https://github.com/bertyhell/sourcegit/releases/tag/v2026.22.1

bertyhell and others added 2 commits November 12, 2026 10:13
Drops the separate BRANCH / TAG column of the `Avatars` commit graph style. Refs are drawn
in front of the commit message again, like in the classic style, so the graph is now the
first column.

Removes the code that only existed for that column: the `+N` overflow badge and dropdown,
ref connector lines, label trimming, the column toggle and its persisted width/visibility.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bertyhell

bertyhell commented Nov 12, 2026 •

Copy link
Copy Markdown
Author

i've updated the code, to keep the branches inside the commit message column, to save some space
as per @love-linger comments:
#2779 (comment)
#2779 (comment)

image

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

Labels

not-planned It's not planned in the future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants