jesseduffield / jesseduffield/lazygit
incorrect commit graph (steps to reproduce available)
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
### Describe the bug
Commit graph shown is incorrect when using "--all" and "date order".
### To Reproduce
Prep:
git clone https://codeberg.org/sitaramc/gitolite
cd gitolite
for i in ssh-certs-extra-code demo-sha256-method-1 demo-sha256-method-2 sha256-support termux-changes namespaces UTF-8 g2
git checkout -b $i --track origin/$i
end
git checkout master
Run lazygit here, then
4 # commits
_ # full window
Ctrl-L, then "toggle show whole git graph"
Ctrl-L again, then "Commit sort-order" -> Date-order
Now page down till you hit tag "v3.6.3". The 4 commits above it (i.e., its children) **should** actually look like this (this is extracted from `git log --graph --all --oneline`):
* 8bef671 (minor) fix typo
| * 813eee0 (origin/UTF-8, UTF-8) speed problems...
| * ad7c2e5 (utf8) enable utf8 for ref or filename checks
| * adfa76d (utf8) prepare for utf8 handling
|/
* 5d24ae6 (tag: v3.6.3) v3.6.3
Instead, lazygit makes it look like
* 813eee0 (origin/UTF-8, UTF-8) speed problems...
| * ad7c2e5 (utf8) enable utf8 for ref or filename checks
| * adfa76d (utf8) prepare for utf8 handling
| * 8bef671 (minor) fix typo
|/
* 5d24ae6 (tag: v3.6.3) v3.6.3
However, this bug does not appear if, after hitting "4" and `"_"`, you do things in this order:
Ctrl-L again, then "Commit sort-order" -> Date-order
Ctrl-L, then "toggle show whole git graph"
### Expected behavior
Inlined in previous section (to better explain the problem)
### Version info:
$ lazygit --version
commit=v0.57.0, build date=2025-12-06T13:10:14Z, build source=binaryRelease, version=0.57.0, os=linux, arch=amd64, git version=2.52.0
$ git --version
git version 2.52.0
Contributor guide
Assessment
This issue has not been assessed yet.