lazygit/pkg/gui/presentation/graph
Stefan Haller cb0c8f39bf Simplify code and fix comment
The "// merge commit" comment was plain wrong, this is any commit that has a
parent, merge or not. The "else if" condition was unnecessary, a plain "else"
would have been enough. But the code in the two blocks was almost identical, so
extract the one thing that was different and unify it.

And while we're at it, use IsFirstCommit() instead of counting parents.
2025-04-29 14:57:15 +02:00
..
cell.go update linters 2022-03-19 12:12:57 +11:00
graph.go Simplify code and fix comment 2025-04-29 14:57:15 +02:00
graph_test.go Modernize benchmarks 2025-04-29 14:57:15 +02:00