@matheusbsbs / matheus-bagliano / commits / 6becd7da87
Fork 0

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>

Junio C Hamano committed Feb 15, 2006 at 01:10 UTC 6becd7da8786555fbd2aeeb9669d37dc810f2658
1 file changed +1 -1
ls-files.c
+1 -1
@@ -757,7 +757,7 @@ int main(int argc, const char **argv)
757 if (ps_matched[num])
758 continue;
759 error("pathspec '%s' did not match any.",
760 - pathspec[num] + prefix_len);
760 + pathspec[num] + prefix_offset);
761 }
762 return errors ? 1 : 0;
763 }