mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Cleanup: use IsMerge instead of counting Parents
This commit is contained in:
parent
cb0c8f39bf
commit
5844ec6eb2
|
|
@ -62,7 +62,7 @@ func IconForTag(tag *models.Tag) string {
|
|||
}
|
||||
|
||||
func IconForCommit(commit *models.Commit) string {
|
||||
if len(commit.Parents) > 1 {
|
||||
if commit.IsMerge() {
|
||||
return MERGE_COMMIT_ICON
|
||||
}
|
||||
return COMMIT_ICON
|
||||
|
|
|
|||
Loading…
Reference in a new issue