dir: convert is_excluded to take an index
[gitweb.git] / builtin / add.c
index bf5e676e4666d55ea0d5340cc5186f184424f2f1..0b52aeced3bc40276e11c7cc829eb5901191e8e1 100644 (file)
@@ -436,7 +436,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
                             !file_exists(path))) {
                                if (ignore_missing) {
                                        int dtype = DT_UNKNOWN;
-                                       if (is_excluded(&dir, path, &dtype))
+                                       if (is_excluded(&dir, &the_index, path, &dtype))
                                                dir_add_ignored(&dir, &the_index,
                                                                path, pathspec.items[i].len);
                                } else