projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8a1a11
)
ls-files --error-unmatch pathspec error reporting fix.
author
Junio C Hamano
<junkio@cox.net>
Wed, 15 Feb 2006 09:10:13 +0000
(
01:10
-0800)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 15 Feb 2006 09:10:13 +0000
(
01:10
-0800)
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>
ls-files.c
patch
|
blob
|
history
diff --git
a/ls-files.c
b/ls-files.c
index a716e5fad2c92122a802ee4e8e25f0bc3248eef4..df93cf2263e34cba6f0dcb9f63c01cef368434e3 100644
(file)
--- 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;
}