-1

I am analyzing commits from project apache/mina-sshd but I am running to a problem:

  • All commits in the branch 0.9.x from project mina-sshd (except for the first 3 commits) belongs to branch master but still be shown in branch 0.9.x. Can anyone explain this for me, please? I am thinking it might be because those commits are merged, maybe?
  • Is there anyway to check what branch a commit belongs to by Python?
Zui Vu
  • 1

1 Answers1

0

Your branch 0.9.x is derived from master. So at the point the branch gets created, it contains all the commits that the other branch has at that point. If you add additional commits to the master after the branch is created, they will not appear anymore unless you merge them.

  • So, if I merge branch 0.9.x to master, I will see all commits in branch 0.9.x that are from the beginning up to the point where I merge, right? – Zui Vu May 28 '20 at 11:49