1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-03-04 10:38:19 +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 ( import (
"fmt" "fmt"
"regexp" "regexp"
"strconv"
"strings" "strings"
"github.com/bouncepaw/mycorrhiza/templates" "github.com/bouncepaw/mycorrhiza/templates"
@ -15,6 +16,7 @@ func RecentChanges(n int) string {
out, err = gitsh( out, err = gitsh(
"log", "--oneline", "--no-merges", "log", "--oneline", "--no-merges",
"--pretty=format:\"%h\t%ce\t%ct\t%s\"", "--pretty=format:\"%h\t%ce\t%ct\t%s\"",
"--max-count="+strconv.Itoa(n),
) )
revs []Revision revs []Revision
) )