cmd_diff(): use an object_array for holding trees
commit33055fa823eff9f4fddb858856f9b9a8d85316fc
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 25 May 2013 09:08:04 +0000 (25 11:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2013 16:25:00 +0000 (28 09:25 -0700)
treeb341d34d74ec305013e85e9c3dfa59e1301f63f3
parent91de344d7696ba8d7b92b7c503fdc0d3961e8cd2
cmd_diff(): use an object_array for holding trees

Change cmd_diff() to use a (struct object_array) for holding the trees
that it accumulates, rather than rolling its own equivalent.

Incidentally, this change removes a hard-coded limit of 100 trees in
combined diff, not that it matters in practice.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff.c