Re: [PATCH 1/4] attr.c::path_matches(): the basename is part of the pathname

2013-03-26 Thread Duy Nguyen
On Wed, Mar 27, 2013 at 1:49 AM, Jeff King wrote: > On Tue, Mar 26, 2013 at 11:39:28AM -0700, Junio C Hamano wrote: > >> The function takes two strings (pathname and basename) as if they >> are independent strings, but in reality, the latter is always >> pointing into a substring in the former. >>

Re: [PATCH 1/4] attr.c::path_matches(): the basename is part of the pathname

2013-03-26 Thread Jeff King
On Tue, Mar 26, 2013 at 11:39:28AM -0700, Junio C Hamano wrote: > The function takes two strings (pathname and basename) as if they > are independent strings, but in reality, the latter is always > pointing into a substring in the former. > > Clarify this relationship by expressing the latter as

[PATCH 1/4] attr.c::path_matches(): the basename is part of the pathname

2013-03-26 Thread Junio C Hamano
The function takes two strings (pathname and basename) as if they are independent strings, but in reality, the latter is always pointing into a substring in the former. Clarify this relationship by expressing the latter as an offset into the former. Signed-off-by: Junio C Hamano --- attr.c | 19