git-lfs/config/version.go
Steve Streeting c4bbd3724e Major refactor to pull things into config, httputil, tools
Mainly required to avoid cyclical dependencies when separating other things
2016-05-13 17:38:06 +01:00

29 lines
404 B
Go

package config
import (
"fmt"
"runtime"
"strings"
)
var (
GitCommit string
Version = "1.2.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,
)
}