As far as I know, commit object contains information only about parents, so if I have situation something like this:
* branch-1 | o | o master | o
I guess you looking for
git log --graph --oneline --all
Check this thread out for a more detailed explaination. Stackoverflow answer