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:
parent
47bc6aa31c
commit
e418c93291
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user