projects
/
scm
/
test.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.5.2
[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.2"
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
}