1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 05:20:26 +00:00

Limit recent changes properly

This commit is contained in:
bouncepaw 2020-10-03 17:59:53 +05:00
parent 47bc6aa31c
commit e418c93291

View File

@ -5,6 +5,7 @@ package history
import (
"fmt"
"regexp"
"strconv"
"strings"
"github.com/bouncepaw/mycorrhiza/templates"
@ -15,6 +16,7 @@ func RecentChanges(n int) string {
out, err = gitsh(
"log", "--oneline", "--no-merges",
"--pretty=format:\"%h\t%ce\t%ct\t%s\"",
"--max-count="+strconv.Itoa(n),
)
revs []Revision
)