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

Re: git & patterns

From
Ferry Huberts <mailings@hupie.com>
Date
May 19, 2011, 06:54 UTC
Message-ID
<4DD4BEBA.7010000@hupie.com>
In-Reply-To
<7v62p79og8.fsf@alter.siamese.dyndns.org>
On 05/19/2011 08:47 AM, Junio C Hamano wrote:
Show 22 quoted lines
> Ferry Huberts <mailings@hupie.com> writes:
> 
>> - usually patterns are just patterns, without specifying what kind
> 
>> - when a pattern type is specified it most of the time is a glob pattern
>> - but sometimes it is called a shell pattern
>> - and  a few cases speak of a wildcard pattern (I think)
> 
> All these three are the same thing. I do not personally feel any strong
> need to change a lot of documentation to use only one of the terms, if
> that is what you are getting at.
> 
> What I was wondering was perhaps we may need to document the general
> principle of using globs when matching names that are hierarchically
> grouped with slash-delimited components.
> 
> The branch and tag namespaces are examples of such hiearchically grouped
> namespaces, and it is not a mere implementation detail as you seem to
> think. For jk/blame-line-porcelain and jk/diffstat-binary are both branch
> names, grouped by name initials of the author, and the globbing jk/* is a
> way to get to the group. With that grouping present, you cannot have a
> branch called "jk".

I would just argue that you layered a grouping abstraction (jk/*) on top of something (branch and tag names) that is _conceptually_ _not_ like a path

I understand your reluctance but try to take a step back: _conceptually_ branches and tags are not paths

I don't want to push my case though :-)
-- 
Ferry Huberts
Previous: Junio C Hamano
Message 11 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.