Skip to content

add regex match flags to git describe

Mostyn Bramley-Moore git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 11 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2describe: add option to use perl-compatible regexes with --matchDocumentation/git-describe.txt builtin/describe.c t/README +1 more+123 -90 replies
2/2describe: add basic and extended posix regex matching for completenessDocumentation/git-describe.txt builtin/describe.c t/t6120-describe.sh+61 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH/RFC v2 0/2] add regex match flags to git describe

git describe currently only supports glob matching with the --matches flag. It would be useful to support regular expressions.

For consistency, this uses the same regex flags as those used by git-grep.

Some old discussion of this as a candidate feature is here, though nobody put together a patch as far as I can see:
http://comments.gmane.org/gmane.comp.version-control.git/173873

-Mostyn.

Mostyn Bramley-Moore (2):
describe: add option to use perl-compatible regexes with --match
describe: add basic and extended posix regex matching for completeness

 Documentation/git-describe.txt |  21 ++++++-
 builtin/describe.c             | 131 ++++++++++++++++++++++++++++++++++++++++-
 t/README                       |   3 +-
 t/t6120-describe.sh            |  38 ++++++++++--
 4 files changed, 184 insertions(+), 9 deletions(-)
Signature · 1 line
2.5.0