diff: convert diff_change to struct object_id
[gitweb.git] / builtin / check-ignore.c
index 7629018a561eb07712dd8ae7fe14bf669159bbf6..c7b8c08897193e225d8da32f4d402def3f16fe50 100644 (file)
@@ -103,7 +103,8 @@ static int check_ignore(struct dir_struct *dir,
                full_path = pathspec.items[i].match;
                exclude = NULL;
                if (!seen[i]) {
-                       exclude = last_exclude_matching(dir, full_path, &dtype);
+                       exclude = last_exclude_matching(dir, &the_index,
+                                                       full_path, &dtype);
                }
                if (!quiet && (exclude || show_non_matching))
                        output_exclude(pathspec.items[i].original, exclude);