Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can select whether you want the diff to the first or the second parent, which is the difference between collapsing and expanding merges. You can also completely collapse merges by showing first-parent-history.

Or I do not understand what you mean with "the expected thing".



Yes, `git log --first-parent` has been a godsend for coping with our team's messy non-cleaned up history.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: