diff options
author | Karsten Blees <karsten.blees@gmail.com> | 2013-04-15 23:12:57 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-15 23:34:01 +0400 |
commit | b07bc8c8c3c492d657a8bedf04ff939763ea8222 (patch) | |
tree | d4d0bad28133aa9e14576c380d244ffd25dbf9e6 /builtin/add.c | |
parent | 95c6f27164b58152efcfb5aaf6164030f10d9459 (diff) |
dir.c: replace is_path_excluded with now equivalent is_excluded API
Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/add.c')
-rw-r--r-- | builtin/add.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin/add.c b/builtin/add.c index ab1c9e8fb7..06f365d129 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -444,9 +444,7 @@ int cmd_add(int argc, const char **argv, const char *prefix) if (pathspec) { int i; - struct path_exclude_check check; - path_exclude_check_init(&check, &dir); if (!seen) seen = find_pathspecs_matching_against_index(pathspec); for (i = 0; pathspec[i]; i++) { @@ -454,7 +452,7 @@ int cmd_add(int argc, const char **argv, const char *prefix) && !file_exists(pathspec[i])) { if (ignore_missing) { int dtype = DT_UNKNOWN; - if (is_path_excluded(&check, pathspec[i], -1, &dtype)) + if (is_excluded(&dir, pathspec[i], &dtype)) dir_add_ignored(&dir, pathspec[i], strlen(pathspec[i])); } else die(_("pathspec '%s' did not match any files"), @@ -462,7 +460,6 @@ int cmd_add(int argc, const char **argv, const char *prefix) } } free(seen); - path_exclude_check_clear(&check); } plug_bulk_checkin(); |