pathspec: rename match_pathspec_depth() to match_pathspec()
[git/git.git] / rerere.c
index 1f2d21a..34a21c4 100644 (file)
--- a/rerere.c
+++ b/rerere.c
@@ -672,8 +672,8 @@ int rerere_forget(struct pathspec *pathspec)
        find_conflict(&conflict);
        for (i = 0; i < conflict.nr; i++) {
                struct string_list_item *it = &conflict.items[i];
        find_conflict(&conflict);
        for (i = 0; i < conflict.nr; i++) {
                struct string_list_item *it = &conflict.items[i];
-               if (!match_pathspec_depth(pathspec, it->string, strlen(it->string),
-                                         0, NULL))
+               if (!match_pathspec(pathspec, it->string,
+                                   strlen(it->string), 0, NULL))
                        continue;
                rerere_forget_one_path(it->string, &merge_rr);
        }
                        continue;
                rerere_forget_one_path(it->string, &merge_rr);
        }