summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec014ea)
raw | patch | inline | side by side (parent: ec014ea)
author | Dan McGee <dpmcgee@gmail.com> | |
Fri, 9 Sep 2011 02:02:45 +0000 (21:02 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 29 Sep 2011 01:24:36 +0000 (18:24 -0700) |
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-walk.c | patch | blob | history |
diff --git a/tree-walk.c b/tree-walk.c
index 322becc3b4ad50b8e87fae8f6d5d38f7edc51f01..9be800760c79638ff75f3b30c344e8a80697224d 100644 (file)
--- a/tree-walk.c
+++ b/tree-walk.c
return 0;
}
-static int match_dir_prefix(const char *base, int baselen,
+static int match_dir_prefix(const char *base,
const char *match, int matchlen)
{
if (strncmp(base, match, matchlen))
if (baselen >= matchlen) {
/* If it doesn't match, move along... */
- if (!match_dir_prefix(base_str, baselen, match, matchlen))
+ if (!match_dir_prefix(base_str, match, matchlen))
goto match_wildcards;
if (!ps->recursive || ps->max_depth == -1)