镜像自地址
https://github.com/therootcompany/go-gitver.git
已同步 2024-11-16 17:08:59 +00:00
WIP, nae nae
这个提交包含在:
父节点
41361316a9
当前提交
59eae7f7ce
@ -142,7 +142,7 @@ func semVer(desc string) string {
|
||||
}
|
||||
|
||||
func gitTimestamp(desc string) (time.Time, error) {
|
||||
args := strings.Split(fmt.Sprintf("git show %s --format='%%cI' --no-patch", desc), " ")
|
||||
args := strings.Split(fmt.Sprintf("git show %s --format='%%cd' --date='format:%%Y-%%m-%%dT%%H:%%M:%%SZ%%z' --no-patch", desc), " ")
|
||||
cmd := exec.Command(args[0], args[1:]...)
|
||||
out, err := cmd.CombinedOutput()
|
||||
fmt.Printf("foo:\n%#v\n", args)
|
||||
|
||||
正在加载...
x
在新工单中引用
屏蔽一个用户