mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
fix: use short status command
This commit is contained in:
parent
7cb387f658
commit
36d58d46ad
|
@ -198,7 +198,7 @@ func (g *git) getUpstreamSymbol() string {
|
||||||
func (g *git) setGitStatus() {
|
func (g *git) setGitStatus() {
|
||||||
g.repo = &gitRepo{}
|
g.repo = &gitRepo{}
|
||||||
g.repo.root = g.getGitCommandOutput("rev-parse", "--show-toplevel")
|
g.repo.root = g.getGitCommandOutput("rev-parse", "--show-toplevel")
|
||||||
output := g.getGitCommandOutput("status", "--porcelain", "-b", "--ignore-submodules")
|
output := g.getGitCommandOutput("status", "-unormal", "--short", "--branch")
|
||||||
splittedOutput := strings.Split(output, "\n")
|
splittedOutput := strings.Split(output, "\n")
|
||||||
g.repo.working = g.parseGitStats(splittedOutput, true)
|
g.repo.working = g.parseGitStats(splittedOutput, true)
|
||||||
g.repo.staging = g.parseGitStats(splittedOutput, false)
|
g.repo.staging = g.parseGitStats(splittedOutput, false)
|
||||||
|
|
Loading…
Reference in a new issue