[PATCH/RFC 2/2] describe: add --pcre-match option

2015-12-27 Thread Mostyn Bramley-Moore
Add a perl-compatible regular expression version of the --match option, which allows more flexible pattern matching. Signed-off-by: Mostyn Bramley-Moore --- Documentation/git-describe.txt | 5 +++ builtin/describe.c | 69 ++ t/README

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

2015-12-27 Thread Mostyn Bramley-Moore
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

[PATCH/RFC 1/2] describe: mention glob in the --matches help text

2015-12-27 Thread Mostyn Bramley-Moore
This saves the user from needing to consult to manpage to learn the format of the --matches argument. Signed-off-by: Mostyn Bramley-Moore --- builtin/describe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/describe.c b/builtin/describe.c index 8a25abe..2386c64

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

2015-12-28 Thread Mostyn Bramley-Moore
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

[PATCH/RFC v2 1/2] describe: add option to use perl-compatible regexes with --match

2015-12-28 Thread Mostyn Bramley-Moore
This allows more flexible pattern matching than the default globs. Signed-off-by: Mostyn Bramley-Moore --- Documentation/git-describe.txt | 15 +-- builtin/describe.c | 90 +- t/README | 3 +- t/t6120-describe.sh

[PATCH/RFC v2 2/2] describe: add basic and extended posix regex matching for completeness

2015-12-28 Thread Mostyn Bramley-Moore
Signed-off-by: Mostyn Bramley-Moore --- Documentation/git-describe.txt | 6 ++ builtin/describe.c | 41 + t/t6120-describe.sh| 14 ++ 3 files changed, 61 insertions(+) diff --git a/Documentation/git-describe.txt b

Re: [PATCH/RFC v2 0/2] add regex match flags to git describe

2015-12-28 Thread Mostyn Bramley-Moore
On 12/28/2015 09:30 PM, Junio C Hamano wrote: Mostyn Bramley-Moore writes: 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

Re: [PATCH/RFC v2 0/2] add regex match flags to git describe

2015-12-30 Thread Mostyn Bramley-Moore
On 12/29/2015 07:27 PM, Junio C Hamano wrote: Mostyn Bramley-Moore writes: I do not think it is wrong per-se to add an option to use regular expressions instead of globs, but if we are to do so, the endgame we aim for MUST be that we do so consistently to all the other commands that iterate

Re: [PATCH/RFC v2 0/2] add regex match flags to git describe

2015-12-30 Thread Mostyn Bramley-Moore
describe searches. But perhaps I misunderstand what you're suggesting with the backquote/subshell. -Mostyn. -- Mostyn Bramley-Moore TV and Connected Devices Opera Software ASA most...@opera.com -- To unsubscribe from this list: send the line "unsubscribe git" in the bo

Re: [PATCH/RFC v2 0/2] add regex match flags to git describe

2015-12-31 Thread Mostyn Bramley-Moore
On 12/31/2015 01:23 AM, Junio C Hamano wrote: Mostyn Bramley-Moore writes: OK, brainstorming a bit, how about either of these: 1) --match-pattern-type= It's a bit lengthy (maybe --match-type would be sufficient), but I like that the value names are shared with git grep etc option names

Re: [PATCH/RFC v2 0/2] add regex match flags to git describe

2016-01-05 Thread Mostyn Bramley-Moore
On 01/04/2016 06:46 PM, Junio C Hamano wrote: Mostyn Bramley-Moore writes: On 12/31/2015 01:23 AM, Junio C Hamano wrote: ... Swapping the option key and value may not be a bad idea, but one problem that the above does not solve, which I outlined in the message you are responding to, is that

[PATCH] Documentation: improve git ls-files -s manpage entry

2017-03-31 Thread Mostyn Bramley-Moore
List the fields in order of appearance in the command output. Signed-off-by: Mostyn Bramley-Moore --- Documentation/git-ls-files.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt index 1cab703..a9149fc

[PATCH v2] Documentation: improve git ls-files -s manpage entry

2017-04-01 Thread Mostyn Bramley-Moore
List the fields in order of appearance in the command output. Signed-off-by: Mostyn Bramley-Moore --- Documentation/git-ls-files.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt index 1cab703..d153c17 100644