I am missing clean mergeinformation in git:
How can I get those? In SVN there was very useful concept of mergeinfo.
I'm not sure exactly what situation you're trying to address.
You can list the commits from branch foo
that are not yet merged into branch bar
using:
git log bar..foo
You can list all commits from any local branch that aren't merged into branch bar
using:
git log --branches --not bar
If you want remote branches, use --remotes
. See git-rev-list(1)
for more variations.
Perhaps this is what you want for seeing what commits were new since the common ancestor of both parents of a merge, although I don't think the question is clear:
git log <merge-commit>^1...<merge-commit>^2
You can see which commits are cherry-picked between two branches using git cherry
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With