summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-28 11:25:23 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-28 11:59:45 +1100
commit919463ff02266b6f6f9a0bbf0977b35654845537 (patch)
tree879f249893768214f8538bc35039544592b17376 /pkg/commands/git.go
parent3f7ec3f3b801f33ca8b2bc436d8f047cdf57b4f0 (diff)
actually don't even bother limiting
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r--pkg/commands/git.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index 799f26326..1b0d6f4a5 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -1117,7 +1117,6 @@ func (c *GitCommand) FetchRemote(remoteName string) error {
}
type GetReflogCommitsOptions struct {
- Limit int
Recycle bool
}
@@ -1127,12 +1126,7 @@ func (c *GitCommand) GetReflogCommits(lastReflogCommit *Commit, options GetReflo
commits := make([]*Commit, 0)
re := regexp.MustCompile(`(\w+).*HEAD@\{([^\}]+)\}: (.*)`)
- limitArg := ""
- if options.Limit > 0 {
- limitArg = fmt.Sprintf("-%d", options.Limit)
- }
-
- cmd := c.OSCommand.ExecutableFromString(fmt.Sprintf("git reflog --abbrev=20 --date=unix %s", limitArg))
+ cmd := c.OSCommand.ExecutableFromString("git reflog --abbrev=20 --date=unix")
onlyObtainedNewReflogCommits := false
err := RunLineOutputCmd(cmd, func(line string) (bool, error) {
match := re.FindStringSubmatch(line)