0

I'm using git rev-list (because that's what GitPython's iter_commits is running behind the scenes) to obtain the changes present in one branch and not the other.

I want to omit all of the commits that were cherry-picked into the older branch.

This is the tree of commits before cherry-pick: git log before cherry-pick

Now, I want to cherry-pick commit "6" into "release-6.6":

git checkout release-6.6
git cherry-pick 24e0f0c

This is the tree of commits after cherry-pick: git log after cherry-pick

Now I want to compare between branch release-6.6 and branch release-6.8 and get only commits 5,7,8:

git rev-list release-6.6..release-6.8

And the output is 4 commits which are: 5,6,7,8.

I even try:

git rev-list release-6.6..release-6.8 --cherry-pick
git rev-list release-6.6..release-6.8 --cherry-pick --right-only
git rev-list release-6.6..release-6.8 --cherry-pick --left-right

but none of them works.

What am I doing wrong? how can I get only commits 5,7,8?

Thanks

0 Answers0