fix(git): add untracked to status

resolves #1422
This commit is contained in:
Jan De Dobbeleer 2021-12-13 13:54:03 +01:00 committed by Jan De Dobbeleer
parent fe3bab8e8a
commit 78f9a3e3c6

View file

@ -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)