X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=dir.c;h=5f86e467c4ca46afe597934ae091a56597a60b0e;hb=87323bdace47c3d464a783f48b16617720e8eeee;hp=b0599dd6e43c606019a98690ddc59e2d92ecb708;hpb=e4d92cdcd9450af7ae4c40de2b7c5c27a1faa138;p=thirdparty%2Fgit.git diff --git a/dir.c b/dir.c index b0599dd6e4..5f86e467c4 100644 --- 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'; }