mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +02:00
Cleanup: use IsMerge instead of counting Parents
This commit is contained in:
parent
cb0c8f39bf
commit
5844ec6eb2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue