dir.c: rename excluded_from_list() to is_excluded_from_list()
[gitweb.git] / builtin / add.c
index 89dce56a240d69ccb224590bf134c9656d8a0522..c689f3725e84e88765ff7a0b79fc5ad338048fce 100644 (file)
@@ -453,7 +453,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
                            && !file_exists(pathspec[i])) {
                                if (ignore_missing) {
                                        int dtype = DT_UNKNOWN;
-                                       if (path_excluded(&check, pathspec[i], -1, &dtype))
+                                       if (is_path_excluded(&check, pathspec[i], -1, &dtype))
                                                dir_add_ignored(&dir, pathspec[i], strlen(pathspec[i]));
                                } else
                                        die(_("pathspec '%s' did not match any files"),