- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for commitTime (0.19 sec)
-
buildscripts/gen-ldflags.go
if commit, err = exec.Command(cmdName, cmdArgs...).Output(); err != nil { fmt.Fprintln(os.Stderr, "Error generating git commit-id: ", err) os.Exit(1) } return strings.TrimSpace(string(commit)) } func commitTime() time.Time { // git log --format=%cD -n1 var ( commitUnix []byte err error ) cmdName := "git" cmdArgs := []string{"log", "--format=%cI", "-n1"}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 16 23:10:48 UTC 2022 - 3.3K bytes - Viewed (0)