attr.c::path_matches(): the basename is part of the pathname
commitbd2f371d34b495ebbc4689604cfc34a825c47d2b
authorJunio C Hamano <gitster@pobox.com>
Tue, 26 Mar 2013 17:28:07 +0000 (26 10:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Mar 2013 18:09:01 +0000 (26 11:09 -0700)
treecee8d0b1cf61bd9f1c327853feec7af2acff0052
parent9db9eecfe5c2490d17c0d4bd5452e4cb1d0948c5
attr.c::path_matches(): the basename is part of the pathname

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 <gitster@pobox.com>
attr.c