report_path_error(): move to dir.c
[gitweb.git] / dir.h
diff --git a/dir.h b/dir.h
index 55e53456afab4c9fb8441144ac7393458b553006..ed336add79282315d3c321dbf91a35127c05d42e 100644 (file)
--- a/dir.h
+++ b/dir.h
@@ -135,6 +135,7 @@ extern char *common_prefix(const struct pathspec *pathspec);
 extern int match_pathspec(const struct pathspec *pathspec,
                          const char *name, int namelen,
                          int prefix, char *seen, int is_dir);
+extern int report_path_error(const char *ps_matched, const struct pathspec *pathspec, const char *prefix);
 extern int within_depth(const char *name, int namelen, int depth, int max_depth);
 
 extern int fill_directory(struct dir_struct *dir, const struct pathspec *pathspec);