Re: Behavior of 'git add \*.txt': bug or feature?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 16, 2009, 20:30 UTC
- Message-ID
- <7vbplazl7s.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <vpqljke7jv8.fsf@bauges.imag.fr>
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.