]> git.ipfire.org Git - thirdparty/git.git/blobdiff - dir.c
add parse_pathspec() that converts cmdline args to struct pathspec
[thirdparty/git.git] / dir.c
diff --git a/dir.c b/dir.c
index b0599dd6e43c606019a98690ddc59e2d92ecb708..5f86e467c4ca46afe597934ae091a56597a60b0e 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -381,7 +381,7 @@ int match_pathspec_depth(const struct pathspec *ps,
 /*
  * Return the length of the "simple" part of a path match limiter.
  */
-static int simple_length(const char *match)
+int simple_length(const char *match)
 {
        int len = -1;
 
@@ -393,7 +393,7 @@ static int simple_length(const char *match)
        }
 }
 
-static int no_wildcard(const char *string)
+int no_wildcard(const char *string)
 {
        return string[simple_length(string)] == '\0';
 }