未验证 提交 6e47e426 编写于 作者: P Phodal Huang

ci: fix '-L does not yet support diff formats besides -p and -s' for windows & mac os on CI

上级 9c1ba22f
......@@ -94,8 +94,8 @@ func buildComment(path string) []*astitodo.TODO {
}
func runGitGetLog(line int, fileName string) string {
// git log -1 -L2:README.md --pretty="format:[%h] %aN %ad %s" --date=short --numstat
historyArgs := []string{"log", "-1", "-L" + strconv.Itoa(line) + ":" + fileName, "--pretty=\"format:[%h] %aN %ad %s\"", "--date=short", "--numstat", "--summary"}
// git log -1 -L2:README.md --pretty="format:[%h] %aN %ad %s" --date=short
historyArgs := []string{"log", "-1", "-L" + strconv.Itoa(line) + ":" + fileName, "--pretty=\"format:[%h] %aN %ad %s\"", "--date=short"}
cmd := exec.Command("git", historyArgs...)
out, err := cmd.CombinedOutput()
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册