summaryrefslogtreecommitdiff
path: root/builtin/clean.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-05-05 19:53:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-06 10:15:39 (GMT)
commita0bba65b107651946431bee4c71d05d812988d9d (patch)
tree2fdf86ac431244039da96a9d46127b073ff8d6f6 /builtin/clean.c
parente799ed408eb59ca631c4908ba4236cd146ff6bd2 (diff)
downloadgit-a0bba65b107651946431bee4c71d05d812988d9d.zip
git-a0bba65b107651946431bee4c71d05d812988d9d.tar.gz
git-a0bba65b107651946431bee4c71d05d812988d9d.tar.bz2
dir: convert is_excluded to take an index
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clean.c')
-rw-r--r--builtin/clean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clean.c b/builtin/clean.c
index d861f83..39866af 100644
--- a/builtin/clean.c
+++ b/builtin/clean.c
@@ -683,7 +683,7 @@ static int filter_by_patterns_cmd(void)
for_each_string_list_item(item, &del_list) {
int dtype = DT_UNKNOWN;
- if (is_excluded(&dir, item->string, &dtype)) {
+ if (is_excluded(&dir, &the_index, item->string, &dtype)) {
*item->string = '\0';
changed++;
}