Skip to content

Improvement: Render branch names on the other side in GitGraphs #6551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pberndt opened this issue Apr 30, 2025 · 0 comments
Open

Improvement: Render branch names on the other side in GitGraphs #6551

pberndt opened this issue Apr 30, 2025 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@pberndt
Copy link

pberndt commented Apr 30, 2025

Description

In Git graphs the branch names are currently rendered on the left in left-to-right diagrams and top in top-to-bottom diagrams etc., that is, on the side of the oldest commit.
This is a bit awkward since git branches are actually pointers to single commits, specifically, the last commit of the series of commits that are informally considered "part of that branch".

Steps to reproduce

  1. Create any Git graph diagram
  2. The branch label(s) will be rendered on the side that is farthest away from the commit that the git branch actually points to

Screenshots

No response

Code Sample


Setup

No response

Suggested Solutions

Therefore I propose to

  1. Add the option to render the branch labels on the other side
  2. Make what is currently the "other side" (i.e. last commit side) the new default (optional)

Additional Context

No response

@pberndt pberndt added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant