From e418c93291e90956bea7e525a41dbc45363d22a3 Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Sat, 3 Oct 2020 17:59:53 +0500 Subject: [PATCH] Limit recent changes properly --- history/information.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/history/information.go b/history/information.go index 03d6aae..469d9ab 100644 --- a/history/information.go +++ b/history/information.go @@ -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 )