In Gitk, showing a commit gives output like this:
Author: ...
Committer: ...
Parent: ...auth/parser)
Parent: ... (Merge branch '...')
Child: ...
Branches: remotes/me/foo, foo
Is there a way to get this kind of output in git log
? Using git log --graph
gives similar information, but in my repository with long-lived branches, it can take a lot of scrolling to find which branch a commit was on.
(A similar question to How can I show the name of branches in `git log`?)