MCPcopy Create free account
hub / github.com/chriswalz/bit / execCommand

Function execCommand

cmd/git.go:228–239  ·  view source on GitHub ↗
(name string, arg ...string)

Source from the content-addressed store, hash-verified

226}
227
228func execCommand(name string, arg ...string) *exec.Cmd {
229 log.Debug().Msg(name + " " + strings.Join(arg, " "))
230 c := exec.Command(name, arg...)
231 c.Env = os.Environ()
232
233 if name == "git" {
234 // exec commands are parsed by bit without getting printed.
235 // parsing git assumes english
236 c.Env = append(c.Env, "LANG=C")
237 }
238 return c
239}

Callers 15

CloudBranchExistsFunction · 0.85
GetLastCommitIdFunction · 0.85
CurrentBranchFunction · 0.85
IsAheadOfCurrentFunction · 0.85
IsGitRepoFunction · 0.85
IsBehindCurrentFunction · 0.85
NothingToCommitFunction · 0.85
IsDivergedFunction · 0.85
StashableChangesFunction · 0.85
StashListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected