MCPcopy
hub / github.com/git-lfs/git-lfs / Version

Function Version

git/version.go:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16)
17
18func Version() (string, error) {
19 gitVersionOnce.Do(func() {
20 gitVersion, gitVersionErr =
21 subprocess.SimpleExec("git", "version")
22 })
23 return gitVersion, gitVersionErr
24}
25
26// IsVersionAtLeast returns whether the git version is the one specified or higher
27// argument is plain version string separated by '.' e.g. "2.3.1" but can omit minor/patch

Callers 4

envCommandFunction · 0.92
logPanicToWriterFunction · 0.92
requireGitVersionFunction · 0.92
IsGitVersionAtLeastFunction · 0.85

Calls 2

SimpleExecFunction · 0.92
DoMethod · 0.45

Tested by

no test coverage detected