jesseduffield / lazygit

simple terminal UI for git commands
MIT License
52.94k stars 1.85k forks source link

Show latest few commits first #2127

Open lyctw opened 2 years ago

lyctw commented 2 years ago

Hi,

I wonder if lazygit can render the latest few commits when it is used with a huge git commit history so it can be more responsive.

Thanks in advance. yc

mark2185 commented 2 years ago

That's what it currently does, but the number is 300. I guess we could make that configurable until we improve the performance...

In the meantime, could you try changing this to e.g. " -50"? If you just want to build and run, I've made said change here (on the branch feature-50-last-commits)

lyctw commented 2 years ago

Thanks @mark2185

I've built your change but still not improved on printing the latest commits in that window.

mark2185 commented 2 years ago

How long does it take for the initial load? What if you set the limit to 15?