mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-09 09:22:48 +03:00
feat(gui): show commit icons
This commit is contained in:
14
pkg/gui/presentation/icons/git_icons.go
Normal file
14
pkg/gui/presentation/icons/git_icons.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package icons
|
||||
|
||||
import "github.com/jesseduffield/lazygit/pkg/commands/models"
|
||||
|
||||
const BRANCH_ICON = "\ufb2b" // שׂ
|
||||
const COMMIT_ICON = "\ufc16" // ﰖ
|
||||
const MERGE_COMMIT_ICON = "\ufb2c" // שּׁ
|
||||
|
||||
func IconForCommit(commit *models.Commit) string {
|
||||
if len(commit.Parents) > 1 {
|
||||
return MERGE_COMMIT_ICON
|
||||
}
|
||||
return COMMIT_ICON
|
||||
}
|
Reference in New Issue
Block a user