commit: avoid allocation in clear_commit_marks_many()
[gitweb.git] / commit.c
index cab8d4455bdbd6e4b87031613300be1112a19df5..82667514bdf246d65e68fc9e955226b2685e47e6 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -547,7 +547,7 @@ void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark)
        struct commit_list *list = NULL;
 
        while (nr--) {
-               commit_list_insert(*commit, &list);
+               clear_commit_marks_1(&list, *commit, mark);
                commit++;
        }
        while (list)