package git func GetCommits() ([]string, error) { err := isGitDir() if err != nil { return nil, err } remoteCmd := gitCmd("log", "--no-merges", "--date=unix", "--pretty=format:'%ad;%an'", // "--since=\"1 years ago\"", // "--until=\"now\"", ) remoteCmd.Stderr = nil output, _ := remoteCmd.Output() lines := outputLines(output) return lines, nil }