args := []string{fmt.Sprintf("--max-count=%d", 100)}
if line.OldSha.IsZero() {
98
-
// just git rev-list <newsha>
98
+
// git rev-list <newsha> ^other-branches --not ^this-branch
args = append(args, line.NewSha.String())
101
+
branches, _ := g.Branches()
102
+
for _, b := range branches {
103
+
args = append(args, fmt.Sprintf("^%s", b.Name))
106
+
args = append(args, "--not")
107
+
args = append(args, fmt.Sprintf("^%s", line.Ref))
// git rev-list <oldsha>..<newsha>
args = append(args, fmt.Sprintf("%s..%s", line.OldSha.String(), line.NewSha.String()))