Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit: avoid allocation in clear_commit_marks_many()
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/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--) {
- c
ommit_list_insert(*commit, &list
);
+ c
lear_commit_marks_1(&list, *commit, mark
);
commit++;
}
while (list)