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