jesseduffield / jesseduffield/lazygit

Commit graph is visually misleading near branch tips (branch divergence unclear)

Open
#5,497 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Description

The commit graph in lazygit can be visually misleading near branch tips, especially when multiple branches are present.

While the underlying commit DAG is correct, the combination of column reuse and branch label placement can make it appear as if a branch diverged from an incorrect commit.

This is confusing when trying to understand where a branch was created.

---

### Example

In my case:

- `bugfix/logger` was created from `main` at commit `3b69e3cc`
- However, in lazygit, the graph visually suggests that it might have diverged from a much older commit (due to a continuous vertical line)

The lower part of the graph is correct and easy to read, but near the branch tip the visualization becomes misleading.

Image

Image

---

### Expected behavior

The graph should make branch divergence clearer, or at least avoid visual artifacts that suggest incorrect ancestry.

Possible improvements:

- Make branch divergence points more explicit
- Avoid column reuse near branch tips when it causes ambiguity
- Provide an optional "branch-aware" graph mode (similar to GitHub/Fork)

---

### Actual behavior

- Commit relationships are correct
- But visually, the branch appears to be connected to the wrong ancestor due to column reuse

---

### Screenshots

(attach your lazygit screenshot here)

---

### Additional context

This seems related to how the graph layout prioritizes compactness over clarity.

Similar confusion has been reported in issues like:
- #5224
- #2843

---

Thanks for the great tool! This is just a UX improvement suggestion.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.