Git - find revision with tag that start with

54 Views Asked by At

I want to do format-patch between the last revision that has a tag that start with "Sync_" and the HEAD

Something like:

git format-patch Sync_*...HEAD

Is there a way to do that?

1

There are 1 best solutions below

0
On
git format-patch $(git describe --no-abbrev --match='Sync_*')...HEAD

This finds the first reachable annotated tag with this pattern (glob) from HEAD.