lazygit/pkg/gui/presentation
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
..
authors Provide two config keys for configuring the author length in commits view 2024-06-29 11:28:44 +02:00
graph Simplify code and fix comment 2025-04-29 14:57:15 +02:00
icons fix: update vscode color to logo color 2025-04-10 09:56:19 +02:00
branches.go Add ability to configure branch color patterns 2025-01-12 13:44:26 +01:00
branches_test.go Add ability to configure branch color patterns 2025-01-12 13:44:26 +01:00
commits.go Remove space after rebase todo 2025-04-29 11:30:37 +02:00
commits_test.go Remove space after rebase todo 2025-04-29 11:30:37 +02:00
files.go Fix display of renamed files 2025-04-02 18:15:44 +02:00
files_test.go Let users to define custom icons and color for files on the config file 2025-03-25 09:48:12 +01:00
item_operations.go Show inline waiting status when checking out a local branch 2024-03-17 07:53:38 +01:00
reflog_commits.go rename sha to hash 10, last remaining sha (hopefully) 2024-04-12 08:33:47 +02:00
remote_branches.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
remotes.go Add SpinnerConfig 2024-04-06 13:46:15 +02:00
stash_entries.go feat: add age on stash lines 2023-12-27 11:21:49 +01:00
status.go Make WorkingTreeState a struct, and add cherry-picking and reverting states 2025-04-20 15:53:17 +02:00
submodules.go Show all submodules recursively 2024-03-07 20:16:28 +01:00
suggestions.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
tags.go Add SpinnerConfig 2024-04-06 13:46:15 +02:00
worktrees.go Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00