Skip to content

Using gitrevisions :/search style with other operators

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2get_sha1_oneline: allow to input commit_listsha1_name.c+12 -71 reply
2/2get_sha1: support ref^{/regex} syntaxDocumentation/revisions.txt sha1_name.c+29 -41 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] [RFD] Using gitrevisions :/search style with other operators

Let's start off from where the previous discussion [1] stopped. People seem to agree ref^{/regex} is a good choice. But we have not come to conclusion how to specify the count yet. Possible suggestions are

- ref^{/foo}2
- ref^{2/foo}
- ref^{:2/foo}
- ref^{2nd/foo}

For whatever syntax chosen, :/ should benefit too. I notice that :/! is reserved for future use. Perhaps :/!2/regex is not too cryptic?

I'd also like to do case-insensitive regex, by the way. :/!2i/regex looks a bit ugly.

[1] http://mid.gmane.org/[email protected]

Nguyễn Thái Ngọc Duy (2):
get_sha1_oneline: allow to input commit_list
get_sha1: support ref^{/regex} syntax

 Documentation/revisions.txt |    7 ++++++
 sha1_name.c                 |   45 ++++++++++++++++++++++++++++++++----------
 2 files changed, 41 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.3.2.316.gda8b3