tree-walk: drop unused parameter from match_dir_prefix
Signed-off-by: Dan McGee <dpmcgee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Dan McGee committed
Sep 8, 2011 at 21:02 UTC
6de96915c0b12870e0cf2204fd060fb0735da728
1 file changed
+2
-2
tree-walk.c
+2
-2
@@ -522,7 +522,7 @@ static int match_entry(const struct name_entry *entry, int pathlen,
522
return 0;
523
}
524
525
-static int match_dir_prefix(const char *base, int baselen,
525
+static int match_dir_prefix(const char *base,
526
const char *match, int matchlen)
527
{
528
if (strncmp(base, match, matchlen))
@@ -579,7 +579,7 @@ int tree_entry_interesting(const struct name_entry *entry,
579
580
if (baselen >= matchlen) {
581
/* If it doesn't match, move along... */
582
- if (!match_dir_prefix(base_str, baselen, match, matchlen))
582
+ if (!match_dir_prefix(base_str, match, matchlen))
583
goto match_wildcards;
584
585
if (!ps->recursive || ps->max_depth == -1)