Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-15 12:10:13 +0300
committerJunio C Hamano <junkio@cox.net>2006-02-15 12:10:13 +0300
commit6becd7da8786555fbd2aeeb9669d37dc810f2658 (patch)
tree4e3dda0a63147cf221326bb5a12cdd1a402403dd
parente8a1a11d4e0036a4205dbed533c135b51cd87218 (diff)
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 <junkio@cox.net>
-rw-r--r--ls-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ls-files.c b/ls-files.c
index a716e5fad2..df93cf2263 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;
}