Skip to content

Commit 5844ec6

Browse files
committed
Cleanup: use IsMerge instead of counting Parents
1 parent cb0c8f3 commit 5844ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gui/presentation/icons/git_icons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func IconForTag(tag *models.Tag) string {
6262
}
6363

6464
func IconForCommit(commit *models.Commit) string {
65-
if len(commit.Parents) > 1 {
65+
if commit.IsMerge() {
6666
return MERGE_COMMIT_ICON
6767
}
6868
return COMMIT_ICON

0 commit comments

Comments
 (0)