dir: convert is_excluded to take an index
[gitweb.git] / builtin / ls-files.c
index a6c70dbe9ec84921108a85485a12111c854833b8..7a8c5681b655868b0c56ac765c97cf0ec57be458 100644 (file)
@@ -322,7 +322,7 @@ static void show_ru_info(void)
 static int ce_excluded(struct dir_struct *dir, const struct cache_entry *ce)
 {
        int dtype = ce_to_dtype(ce);
-       return is_excluded(dir, ce->name, &dtype);
+       return is_excluded(dir, &the_index, ce->name, &dtype);
 }
 
 static void show_files(struct dir_struct *dir)