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