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

Re: Behavior of 'git add \*.txt': bug or feature?

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 16, 2009, 21:26 UTC
Message-ID
<vpqr5u637kb.fsf@bauges.imag.fr>
In-Reply-To
<7vbplazl7s.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
>
>> It this the intended behavior? If so, what's the rationale for this?
>
> I strongly suspect that it comes from the fact that we have two
> definitions and three implementations of pathspec-aware tree traversal.
> One family is unaware of shell-glob wildcards (they only do leading
> directory path match) while the other know both leading directory path and
> shell-glob.
>
> It is on the list of long-term items to fix, as the change required is
> quite involved.
OK, that answers my question.
Thanks,
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: Clemens Buchacher
Message 3 of 4 in “Behavior of 'git add \*.txt': bug or feature?”
  1. Matthieu MoySep 16, 2009
  2. Junio C HamanoSep 16, 2009
  3. Matthieu MoySep 16, 2009
  4. Clemens BuchacherSep 17, 2009

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.