Re: [PATCH] ls-files: add pathspec matching for submodules
- From
- Brandon Williams <bmwill@google.com>
- Date
- Sep 19, 2016, 18:35 UTC
- Message-ID
- <CAKoko1qrAuLhn6qQax-BSZFhEqbFdiBbVrip8TD3NVjD8Xzy0g@mail.gmail.com>
- In-Reply-To
- <xmqqoa3jeo1y.fsf@gitster.mtv.corp.google.com>
I thought as much. Thanks for the quick explanation :)
On Mon, Sep 19, 2016 at 11:34 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> Brandon Williams <bmwill@google.com> writes: > >> side question if the answer is short: Any reason as to why all of the >> pathspec matching code lives inside of dir.c and not pathspec.c? > > Hysterical Raisins. > > A pathspec used to be just a "const char **" in simpler times, which > was no more elaborate than "argv + i" (i.e. after parsing options > and revisions out, the remainders are pathspec elements). Major > part of the matching was done inside dir.c and we haven't had chance > to look at the larger picture to move the code around.