Skip to content

Commit

Permalink
git: do not include merges in the commit range
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Batts <[email protected]>
  • Loading branch information
vbatts committed Mar 21, 2017
1 parent a23edf1 commit ca82522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, " "))
}
Expand Down

0 comments on commit ca82522

Please sign in to comment.