Macarse Macarse - 1 year ago 125
Git Question

git log between tags using wildcards

Jenkins tags every build with a tag that looks like this:


when building a second RC, I would like to get the diff between the two builds. Something like:

git shortlog builds/Android_release/1.2-RC1*..builds/Android_release/1.2-RC2*

Unfortunately, wildcards do not work in the range.

How can I achieve this?

Answer Source

What about to do something like this:

tag1=$(git tag | grep 1.2-RC1)
tag2=$(git tag | grep 1.2-RC2)
git shortlog $tag1..$tag2
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download