dir: convert is_excluded to take an index
[gitweb.git] / builtin / clean.c
index d861f836a29bf98d248f27632a8c47711a5da3a5..39866afab470e1ad5d0d70d33bdd6feadacf4c99 100644 (file)
@@ -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++;
                        }