git-lfs/config/version.go

29 lines
404 B
Go
Raw Normal View History

package config
import (
"fmt"
"runtime"
"strings"
)
var (
GitCommit string
2016-07-25 18:10:48 +00:00
Version = "1.3.0"
VersionDesc string
)
func init() {
gitCommit := ""
if len(GitCommit) > 0 {
gitCommit = "; git " + GitCommit
}
VersionDesc = fmt.Sprintf("git-lfs/%s (GitHub; %s %s; go %s%s)",
Version,
runtime.GOOS,
runtime.GOARCH,
strings.Replace(runtime.Version(), "go", "", 1),
gitCommit,
)
}