Have a question on git merging, lets say I have 2 branches - B1 and B2, wherein B2 is created from B1. Development is going on parallel in both branches, as described below - commits "6, 7, 8" belongs to branch "B2" and "1, 2, 3, 4, 5, 9, 10" belongs to branch "B1" where commit "10" is a merged commit.
/ - 6 - 7 - 8 - \
----1 - 2 - 3 - 4 - 5 - 9 - 10 (Merged commit)
My question is - can commit "10", somehow, tell me that source branch (the one which is merged) is B2 and destination (the one B2 merged into) is B1?
I looked into "git show" options but got nothing.
I understand that using "git log --graph" and gitk I can manually check but it becomes extremely difficult when there are large number of commits and even more difficult if there are fast forward merges and a lot of merging activities in the repository. Commit comments is another option but cannot really rely on it. So I am wondering if "git show" or any other git command could provide this information.