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

> "git oldest-ancestor brancha branchb" does what it says.

The oldest (common) ancestor of two revisions would typically be the initial commit. I assume your alias really finds the last (most recent) common ancestor. But are you aware of the `git merge-base` builtin? Your alias looks an awful lot like it.



Oh, yes that's exactly what I really meant. Whoops.

I'll check out merge-base tomorrow, thanks for mentioning it!




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

Search: