From ca8252252b36ef8294f354f53e043f528538dd23 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 21 Mar 2017 10:13:01 -0400 Subject: [PATCH] git: do not include merges in the commit range Signed-off-by: Vincent Batts --- git/commits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/commits.go b/git/commits.go index f0a392a..c84e64c 100644 --- a/git/commits.go +++ b/git/commits.go @@ -12,7 +12,7 @@ import ( // If commitrange is a git still range 12345...54321, then it will be isolated set of commits. // If commitrange is a single commit, all ancestor commits up through the hash provided. func Commits(commitrange string) ([]CommitEntry, error) { - cmdArgs := []string{"git", "log", `--pretty=format:%H`, commitrange} + cmdArgs := []string{"git", "--no-pager", "log", `--no-merges`, `--pretty=format:%H`, commitrange} if debug() { logrus.Infof("[git] cmd: %q", strings.Join(cmdArgs, " ")) }