Fix long commit history slowing summary page
https://tangled.org/pocka.jp/legit/issues/7#comment-3mqn5xujwoh22
The summary page displays recent up to three commits, but underlying
logic reads the whole repo history then subslice the result. The loading
of entire commit history is really demanding task and slows the response
time of a summary page down a lot.
Before this patch, loading a summary page of Zig project took 900ms ~
1100ms. After this patch, it's 180ms under load.