Skip to content

Commit 6de9691

Browse files
toofishesgitster
authored andcommitted
tree-walk: drop unused parameter from match_dir_prefix
Signed-off-by: Dan McGee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ec014ea commit 6de9691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tree-walk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ static int match_entry(const struct name_entry *entry, int pathlen,
522522
return 0;
523523
}
524524

525-
static int match_dir_prefix(const char *base, int baselen,
525+
static int match_dir_prefix(const char *base,
526526
const char *match, int matchlen)
527527
{
528528
if (strncmp(base, match, matchlen))
@@ -579,7 +579,7 @@ int tree_entry_interesting(const struct name_entry *entry,
579579

580580
if (baselen >= matchlen) {
581581
/* 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))
583583
goto match_wildcards;
584584

585585
if (!ps->recursive || ps->max_depth == -1)

0 commit comments

Comments
 (0)