aboutsummaryrefslogtreecommitdiff
path: root/ls-files.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-02-21 12:48:30 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-21 18:37:36 -0800
commitc8af25ca0157146de59b992c1f961f1af8465995 (patch)
treef5d8bcaea15f8dbd89b82c9ba5187a0e9bf0a50c /ls-files.c
parentd0080b3cdab3a309385ad3fb3b4d2f6a08212985 (diff)
downloadgit-c8af25ca0157146de59b992c1f961f1af8465995.tar.gz
git-c8af25ca0157146de59b992c1f961f1af8465995.tar.xz
git-ls-files: Fix, document, and add test for --error-unmatch option.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ls-files.c')
-rw-r--r--ls-files.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ls-files.c b/ls-files.c
index df93cf226..27059e204 100644
--- a/ls-files.c
+++ b/ls-files.c
@@ -758,6 +758,7 @@ int main(int argc, const char **argv)
continue;
error("pathspec '%s' did not match any.",
pathspec[num] + prefix_offset);
+ errors++;
}
return errors ? 1 : 0;
}