Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
commit: use clear_commit_marks_many() in remove_redundant()
author
René Scharfe
<l.s.r@web.de>
Mon, 25 Dec 2017 17:44:03 +0000
(18:44 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 28 Dec 2017 21:50:05 +0000
(13:50 -0800)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
07f7d55
)
diff --git
a/commit.c
b/commit.c
index 82667514bdf246d65e68fc9e955226b2685e47e6..9edc12f338349e9e2d834395f8ca571b697d4353 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-929,8
+929,7
@@
static int remove_redundant(struct commit **array, int cnt)
if (work[j]->object.flags & PARENT1)
redundant[filled_index[j]] = 1;
clear_commit_marks(array[i], all_flags);
- for (j = 0; j < filled; j++)
- clear_commit_marks(work[j], all_flags);
+ clear_commit_marks_many(filled, work, all_flags);
free_commit_list(common);
}