On Tue, Mar 26, 2013 at 03:05:58PM -0400, Jeff King wrote:
> On Tue, Mar 26, 2013 at 11:39:30AM -0700, Junio C Hamano wrote:
>
> > A similar adjustment for match_pathname() might be needed, but I
> > didn't look into it.
> [...]
> We do seem to use strncmp_icase through the rest of the function,
On Wed, Mar 27, 2013 at 4:33 AM, Jeff King wrote:
> Hmm. match_pathname does have this:
>
> /*
> * baselen does not count the trailing slash. base[] may or
> * may not end with a trailing slash though.
> */
> if (pathlen < baselen + 1 ||
> (ba
On Tue, Mar 26, 2013 at 03:05:58PM -0400, Jeff King wrote:
> On Tue, Mar 26, 2013 at 11:39:30AM -0700, Junio C Hamano wrote:
>
> > A similar adjustment for match_pathname() might be needed, but I
> > didn't look into it.
>
> I notice that match_pathname takes _two_ lengths for the pattern: the
>
On Tue, Mar 26, 2013 at 11:39:30AM -0700, Junio C Hamano wrote:
> A similar adjustment for match_pathname() might be needed, but I
> didn't look into it.
I notice that match_pathname takes _two_ lengths for the pattern: the
nowildcardlen (called "prefix", and the full patternlen). But the first
t
The function is given a string that ends with a slash to signal that
the path is a directory to make sure that a pattern that ends with a
slash (i.e. MUSTBEDIR) can tell directories and non-directories
apart. However, the pattern itself (pat->pattern and
pat->patternlen) that came from such a MUST
5 matches
Mail list logo