e11dfe77c1e1c42932c58ef48f018009c4d9361d
[scm/test.git] / config / version.go
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.5.0"
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 }