github.com/git-lfs/git-lfs@v2.5.2+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.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  }