Skip to content

Commit ca82522

Browse files
committed
git: do not include merges in the commit range
Signed-off-by: Vincent Batts <[email protected]>
1 parent a23edf1 commit ca82522

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)