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

Re: What's cooking in git.git (Oct 2012, #06; Fri, 19)

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 21, 2012, 05:57 UTC
Message-ID
<7vfw58gyfd.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CACsJy8A2PdG69hB1=YgHMAdibO=7_Uu5qvmyAqcrhdBVWy761g@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
Show 8 quoted lines
>>  I suspect that this needs to be plugged to pathspec matching code;
>>  otherwise "git log -- 'Docum*/**/*.txt'" would not show the log for
>>  commits that touch Documentation/git.txt, which would be confusing
>>  to the users.
>
> I do want non-recursive "*" in pathspec and "**" can help retain the
> recursive "*" semantics. But can we just flip the coin at some point
> and change "*" semantics in pathspec from recursive to non-recursive?

Fair enough; that indeed is a valid concern. Something like ":(glob)" magic may be necessary as an early step. Longer term (like Git 3.0 where we might say "screw the existing users" and redesign "if we were doing Git from scratch"), it would be nice to have excludes, attributes and pathspecs all share the same syntax, though.

Previous: Nguyen Thai Ngoc Duy
Message 3 of 3 in “What's cooking in git.git (Oct 2012, #06; Fri, 19)”
  1. Junio C HamanoOct 19, 2012
  2. Nguyen Thai Ngoc DuyOct 21, 2012
  3. Junio C HamanoOct 21, 2012

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.