git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git & patterns

From
Ferry Huberts <mailings@hupie.com>
Date
May 18, 2011, 13:36 UTC
Message-ID
<4DD3CB4F.6080304@hupie.com>
In-Reply-To
<4DD3C484.2070102@op5.se>
On 05/18/2011 03:07 PM, Andreas Ericsson wrote:
Show 23 quoted lines
> On 05/18/2011 12:48 PM, Ferry Huberts wrote:
>> Hi list
>>
>> After reading the manual page for git describe it was not clear to me what
>> kind of pattern the --match option should take. Was it to be
>> a shell pattern (to be expected) or a regular expression pattern?
>>
>> So I dug in the code to find fnmatch: shell pattern.
>>
>> Now my question(s):
>> - could the manual page be update to make this explicit please? (plus
>> other manual pages talking about (shell) patterns)
> 
> Patches welcome.
> 
>> - could git start taking regular expression patterns please?
>>
> 
> I'm not the maintainer, but with my incredible powers of foresight I'll
> take a wild stab at answering in his stead:
> Not with the current argument, no, but introducing '--rematch' or '--rmatch'
> to take a regular expression instead would probably be a welcome patch if
> it's well done.
agreed
Show 11 quoted lines
> 
> 
>> I'm using the --match option on git describe to generate version
>> information from and matching against a regular expression is soooo much
>> more powerful and allows me to fully define my naming convention while
>> shell patterns do not allow me to do so.
>>
>> Or am I missing something?
>>
> 
> You're not, but we're missing the patch ;)
Will see if I can make some time but I'm pretty busy :-(
Thanks!
> For my own needs, the fnmatch patterns work quite well.
> 
grtz
-- 
Ferry Huberts
Previous: Andreas EricssonNext: Junio C Hamano
Message 3 of 11 in “git & patterns”
  1. Ferry HubertsMay 18, 2011
  2. Andreas EricssonMay 18, 2011
  3. Ferry HubertsMay 18, 2011
  4. Junio C HamanoMay 18, 2011
  5. Ferry HubertsMay 19, 2011
  6. Tim MazidMay 19, 2011
  7. Tim MazidMay 19, 2011
  8. Ferry HubertsMay 19, 2011
  9. Tim MazidMay 19, 2011
  10. Junio C HamanoMay 19, 2011
  11. Ferry HubertsMay 19, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.