mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-21 00:30:00 +02:00
Cleanup: use IsMerge instead of counting Parents
This commit is contained in:
@ -62,7 +62,7 @@ func IconForTag(tag *models.Tag) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func IconForCommit(commit *models.Commit) string {
|
func IconForCommit(commit *models.Commit) string {
|
||||||
if len(commit.Parents) > 1 {
|
if commit.IsMerge() {
|
||||||
return MERGE_COMMIT_ICON
|
return MERGE_COMMIT_ICON
|
||||||
}
|
}
|
||||||
return COMMIT_ICON
|
return COMMIT_ICON
|
||||||
|
Reference in New Issue
Block a user