Skip to content

Commit 9b7297d

Browse files
authored
Merge pull request #16 from vbatts/no-merges
git: do not include merges in the commit range
2 parents a23edf1 + ca82522 commit 9b7297d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/commits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
// If commitrange is a git still range 12345...54321, then it will be isolated set of commits.
1313
// If commitrange is a single commit, all ancestor commits up through the hash provided.
1414
func Commits(commitrange string) ([]CommitEntry, error) {
15-
cmdArgs := []string{"git", "log", `--pretty=format:%H`, commitrange}
15+
cmdArgs := []string{"git", "--no-pager", "log", `--no-merges`, `--pretty=format:%H`, commitrange}
1616
if debug() {
1717
logrus.Infof("[git] cmd: %q", strings.Join(cmdArgs, " "))
1818
}

0 commit comments

Comments
 (0)