aboutsummaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2011-09-08 21:02:45 -0500
committerJunio C Hamano <gitster@pobox.com>2011-09-28 18:24:36 -0700
commit6de96915c0b12870e0cf2204fd060fb0735da728 (patch)
tree50531a1b628055b21360b9edc13cad65eb028a6f /tree-walk.c
parentec014eac0e9e6f30cbbca616090fa2ecf74797e7 (diff)
downloadgit-6de96915c0b12870e0cf2204fd060fb0735da728.tar.gz
git-6de96915c0b12870e0cf2204fd060fb0735da728.tar.xz
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>
Diffstat (limited to 'tree-walk.c')
-rw-r--r--tree-walk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree-walk.c b/tree-walk.c
index 322becc3b..9be800760 100644
--- a/tree-walk.c
+++ b/tree-walk.c
@@ -522,7 +522,7 @@ static int match_entry(const struct name_entry *entry, int pathlen,
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))
@@ -579,7 +579,7 @@ int tree_entry_interesting(const struct name_entry *entry,
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)