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) diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go index 9ea551451..8293d25f0 100644 --- a/pkg/gui/commits_panel.go +++ b/pkg/gui/commits_panel.go @@ -81,8 +81,6 @@ func (gui *Gui) handleCommitSelect(g *gocui.Gui, v *gocui.View) error { func (gui *Gui) refreshReflogCommitsConsideringStartup() { switch gui.State.StartupStage { case INITIAL: - gui.refreshReflogCommits(refreshReflogOptions{Limit: 100, Recycle: false}) - go func() { gui.refreshReflogCommits(refreshReflogOptions{Recycle: false}) gui.refreshBranches() diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go index 3d9ecf01c..f48778948 100644 --- a/pkg/gui/reflog_panel.go +++ b/pkg/gui/reflog_panel.go @@ -47,7 +47,6 @@ func (gui *Gui) handleReflogCommitSelect(g *gocui.Gui, v *gocui.View) error { } type refreshReflogOptions struct { - Limit int Recycle bool }