vim

emilaasa 2022-08-30T11:27:09.864419Z

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)

nbardiuk 2022-08-30T11:53:31.859079Z

: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
emilaasa 2022-08-30T12:18:53.176709Z

Thanks - perfect! 🙂

sheluchin 2022-08-30T13:04:55.678849Z

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.

emilaasa 2022-08-30T13:08:51.830429Z

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