Is there a way to list commits from branch A that aren't in branch B, but if there are any commits that are in A and B, but reverted in B, show those as well?
Something similar to:
git log --oneline A ^B
So, let's say I have branch C that was merged into A, and then accidentally merged into B. The merge was then reverted in B. B still technically contains the commits from C, so the above command won't list the commits in C... but in my case, I want the command to also show such commits.