mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
actually don't even bother limiting
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user