fix(git): migrate deprecated icon

This commit is contained in:
Jan De Dobbeleer 2024-02-20 20:19:49 +01:00 committed by Jan De Dobbeleer
parent 6f951e8bd9
commit 0671e2c42c
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ func (segment *Segment) migrationOne(env platform.Environment) {
segment.migrateTemplate()
segment.migrateIconOverride("local_working_icon", " \uF044 ")
segment.migrateIconOverride("local_staged_icon", " \uF046 ")
segment.migrateIconOverride("stash_count_icon", " \uF692 ")
segment.migrateIconOverride("stash_count_icon", " \uf0c7 ")
segment.migrateIconOverride("worktree_count_icon", " \uf1bb ")
segment.migrateIconOverride("status_separator_icon", " |")
if segment.Properties.GetBool("status_colors_enabled", false) {

View file

@ -51,7 +51,7 @@ import Config from "@site/src/components/Config.js";
"{{ if gt .Behind 0 }}#B388FB{{ end }}",
],
template:
"{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}",
"{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf0c7 {{ .StashCount }}{{ end }}",
properties: {
fetch_status: true,
fetch_upstream_icon: true,