We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c51a0b4 + 1ca727f commit 16b2e57Copy full SHA for 16b2e57
commit.c
@@ -780,14 +780,14 @@ static void clear_commit_marks_1(struct commit_list **plist,
780
781
void clear_commit_marks_many(size_t nr, struct commit **commit, unsigned int mark)
782
{
783
- struct commit_list *list = NULL;
784
-
785
for (size_t i = 0; i < nr; i++) {
+ struct commit_list *list = NULL;
+
786
clear_commit_marks_1(&list, *commit, mark);
787
+ while (list)
788
+ clear_commit_marks_1(&list, pop_commit(&list), mark);
789
commit++;
790
}
- while (list)
- clear_commit_marks_1(&list, pop_commit(&list), mark);
791
792
793
void clear_commit_marks(struct commit *commit, unsigned int mark)
0 commit comments