MCPcopy
hub / github.com/justjanne/powerline-go / runGitCommand

Function runGitCommand

segment-git.go:112–117  ·  view source on GitHub ↗
(cmd string, args ...string)

Source from the content-addressed store, hash-verified

110}()
111
112func runGitCommand(cmd string, args ...string) (string, error) {
113 command := exec.Command(cmd, args...)
114 command.Env = gitProcessEnv
115 out, err := command.Output()
116 return string(out), err
117}
118
119func parseGitBranchInfo(status []string) map[string]string {
120 return groupDict(branchRegex, status[0])

Callers 4

getGitDetachedBranchFunction · 0.85
repoRootFunction · 0.85
segmentGitFunction · 0.85
segmentGitLiteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected