github.com/stffabi/git-lfs@v2.3.5-0.20180214015214-8eeaa8d88902+incompatible/config/version.go (about) 1 package config 2 3 import ( 4 "fmt" 5 "runtime" 6 "strings" 7 ) 8 9 var ( 10 GitCommit string 11 VersionDesc string 12 ) 13 14 const ( 15 Version = "2.3.4" 16 ) 17 18 func init() { 19 gitCommit := "" 20 if len(GitCommit) > 0 { 21 gitCommit = "; git " + GitCommit 22 } 23 VersionDesc = fmt.Sprintf("git-lfs/%s (GitHub; %s %s; go %s%s)", 24 Version, 25 runtime.GOOS, 26 runtime.GOARCH, 27 strings.Replace(runtime.Version(), "go", "", 1), 28 gitCommit, 29 ) 30 }