mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 22:07:25 -08:00
parent
82635cd5ec
commit
a38fe214c3
|
@ -163,7 +163,7 @@ func (g *git) string() string {
|
||||||
if g.repo.working.changed {
|
if g.repo.working.changed {
|
||||||
fmt.Fprint(buffer, g.getStatusDetailString(g.repo.working, WorkingColor, LocalWorkingIcon, " \uF044"))
|
fmt.Fprint(buffer, g.getStatusDetailString(g.repo.working, WorkingColor, LocalWorkingIcon, " \uF044"))
|
||||||
}
|
}
|
||||||
if g.props.getBool(DisplayStashCount, false) && g.repo.stashCount != "" {
|
if g.repo.stashCount != "" {
|
||||||
fmt.Fprintf(buffer, " %s%s", g.props.getString(StashCountIcon, "\uF692 "), g.repo.stashCount)
|
fmt.Fprintf(buffer, " %s%s", g.props.getString(StashCountIcon, "\uF692 "), g.repo.stashCount)
|
||||||
}
|
}
|
||||||
return buffer.String()
|
return buffer.String()
|
||||||
|
@ -214,7 +214,9 @@ func (g *git) setGitStatus() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g.repo.HEAD = g.getGitHEADContext(status["local"])
|
g.repo.HEAD = g.getGitHEADContext(status["local"])
|
||||||
|
if g.props.getBool(DisplayStashCount, false) {
|
||||||
g.repo.stashCount = g.getStashContext()
|
g.repo.stashCount = g.getStashContext()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *git) SetStatusColor() {
|
func (g *git) SetStatusColor() {
|
||||||
|
|
Loading…
Reference in a new issue