mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 22:07:25 -08:00
parent
fe3bab8e8a
commit
78f9a3e3c6
|
@ -227,6 +227,11 @@ func (g *git) setGitStatus() {
|
||||||
if len(status) <= 4 {
|
if len(status) <= 4 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
const UNTRACKED = "?"
|
||||||
|
if strings.HasPrefix(status, UNTRACKED) {
|
||||||
|
g.Working.add(UNTRACKED)
|
||||||
|
return
|
||||||
|
}
|
||||||
workingCode := status[3:4]
|
workingCode := status[3:4]
|
||||||
stagingCode := status[2:3]
|
stagingCode := status[2:3]
|
||||||
g.Working.add(workingCode)
|
g.Working.add(workingCode)
|
||||||
|
|
Loading…
Reference in a new issue