MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / gitVersion

Function gitVersion

mob.go:1229–1236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1227}
1228
1229func gitVersion() string {
1230 _, output, err := runCommandSilent("git", "--version")
1231 if err != nil {
1232 say.Debug("gitVersion encountered an error: " + err.Error())
1233 return ""
1234 }
1235 return strings.TrimSpace(output)
1236}
1237
1238func isGit() bool {
1239 _, _, err := runCommandSilent("git", "rev-parse")

Callers 1

runFunction · 0.85

Calls 2

DebugFunction · 0.92
runCommandSilentFunction · 0.85

Tested by

no test coverage detected