Fork me on GitHub
#vim
<
2022-08-30
>
emilaasa11:08:09

Is :Gclog and :Git log in fugitive slow for everyone? If so - is there a fast git log command to run from inside vim (i often want to just look at the titles for the most recent git log)

nbardiuk11:08:31

:Gclog is slow on old repos because it loads all commits. You can pass extra git log params, for example limiting number of recent entries :Gclog -n 10 or just :Gclog -10

🎉 2
emilaasa12:08:53

Thanks - perfect! 🙂

sheluchin13:08:55

This is git log itself that is slow, BTW. I think it's because the only way it can establish order is by actually following all the parents through the entire tree. There isn't some commit field that can reliably be used to determine order, AFAIK.

emilaasa13:08:51

Yeah - the speed difference between git log in the shell and fugitive seems to be that fugitive wants the whole git log in a vim buffer, where git log paginates in a pager