From: Junio C Hamano Date: Wed, 15 Feb 2006 09:10:13 +0000 (-0800) Subject: ls-files --error-unmatch pathspec error reporting fix. X-Git-Tag: v1.3.0-rc1~210 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6becd7da8786555fbd2aeeb9669d37dc810f2658;p=git.git ls-files --error-unmatch pathspec error reporting fix. Earlier patch mistakenly used prefix_len when it meant prefix_offset. The latter is to strip the leading directories when run from a subdirectory. Signed-off-by: Junio C Hamano --- diff --git a/ls-files.c b/ls-files.c index a716e5fad..df93cf226 100644 --- a/ls-files.c +++ b/ls-files.c @@ -757,7 +757,7 @@ int main(int argc, const char **argv) if (ps_matched[num]) continue; error("pathspec '%s' did not match any.", - pathspec[num] + prefix_len); + pathspec[num] + prefix_offset); } return errors ? 1 : 0; }