Skip to content

add a perl compatible regex match flag to git describe

Mostyn Bramley-Moore git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2describe: mention glob in the --matches help textbuiltin/describe.c+2 -20 replies
2/2describe: add --pcre-match optionDocumentation/git-describe.txt builtin/describe.c t/README +1 more+101 -50 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH/RFC 0/2] add a perl compatible regex match flag to git describe

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

PCRE is already an optional dependency from git grep, I wonder if posix or extended regexes would be preferable?

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 Bramley-Moore (2):
describe: mention glob in the --matches help text
describe: add --pcre-match option

 Documentation/git-describe.txt |  5 +++
 builtin/describe.c             | 73 ++++++++++++++++++++++++++++++++++++++++--
 t/README                       |  3 +-
 t/t6120-describe.sh            | 29 ++++++++++++++---
 4 files changed, 103 insertions(+), 7 deletions(-)
Signature · 1 line
2.5.0