Hacker News new | past | comments | ask | show | jobs | submit login

The built in automatic paging in git already makes sure it does not have to load all history. And --graph is what makes it slow. Adding a limit with git lg -10 seems to take about the same time as with no limit at all.



Ah, thanks for the correction.

Knowing that, this doesn't really matter, but "git lg -10" produces no output at all for me.


Really? "git lg -10" works perfectly for me, exactly as I expect. Did you add a "--" to the end accidentally, maybe?


Indeed I was. That was in the shortcut when I originally looked at it. He has since edited it out. Thanks!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: