Commit 9746b36c by Carlos Martín Nieto

revwalk: remove preallocation of the uninteresting commits

Preallocating two commits doesn't make much sense as leaving allocation
to the first array usage will allocate a sensible size with room for
growth.

This preallocation has also been hiding issues with strict aliasing in
the tests, as we have fairly simple histories and never trigger the
growth.
parent 9de6ec52
......@@ -48,9 +48,6 @@ static int mark_uninteresting(git_revwalk *walk, git_commit_list_node *commit)
assert(commit);
git_array_init_to_size(pending, 2);
GITERR_CHECK_ARRAY(pending);
do {
commit->uninteresting = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment