From: Brandon Williams Date: Mon, 19 Sep 2016 18:30:03 GMT Subject: Re: [PATCH] ls-files: add pathspec matching for submodules Message-ID: In-Reply-To: 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? On Mon, Sep 19, 2016 at 11:22 AM, Junio C Hamano wrote: > Brandon Williams writes: > >> Yes in that case it wouldn't have passed ps_strncmp()...but we should have never >> made it there in the first place due to a piece of logic in match_pathspec_item: > > Ah, OK. > > Thanks for clarifying.