treewide: rename 'exclude' methods to 'pattern'
[gitweb.git] / unpack-trees.c
index c4dc21affb479aa84a1a617414e642524da2ae8c..902a799aeb379a2d71b5ff59135593e00d24f2c4 100644 (file)
@@ -1464,7 +1464,7 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
                o->skip_sparse_checkout = 1;
        if (!o->skip_sparse_checkout) {
                char *sparse = git_pathdup("info/sparse-checkout");
-               if (add_excludes_from_file_to_list(sparse, "", 0, &pl, NULL) < 0)
+               if (add_patterns_from_file_to_list(sparse, "", 0, &pl, NULL) < 0)
                        o->skip_sparse_checkout = 1;
                else
                        o->pl = &pl;
@@ -1631,7 +1631,7 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
 
 done:
        trace_performance_leave("unpack_trees");
-       clear_exclude_list(&pl);
+       clear_pattern_list(&pl);
        return ret;
 
 return_failed: