I'm doing the following test case:
I've created "MY-BRANCH" branch
Added a TAG:
git tag TAG1 MY-BRANCH
git push --follow-tags
If I do:
git describe --tags
I can see the TAG with a long name TAG1-5-g2fa83fb
I have some merges from different branches into "MY-BRANCH" using --squash.
Now I'm trying to get all merges done from TAG1 till HEAD but I'm not getting anything. I was expecting to see at least 3 merges. Nothing is coming.
git --no-pager log TAG1..HEAD --parents --oneline --merges --abbrev=0 MY-BRANCH
I can't see what I'm doing wrong.
UPDATE:
As comments below, my initial problem seems to be the branch that the TAG was assigned to. Filter --merge seems not work with --squash too.
I'll try to clarify what I'm trying to achieve maybe it's more helpful.
What I'm basically trying to do is to get all merges IN (merges into my current branch) from the last TAG to the HEAD. One of the problems is that the merges are being done with --squash. I didn't find any type of filter for --squash merges.