use struct sha1_array in diff_tree_combined()
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 17 Dec 2011 10:15:48 +0000 (11:15 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Dec 2011 02:21:37 +0000 (18:21 -0800)
commit0041f09de6e62efc31c860487f04e8b08bce68c8
tree85d855657c9a8a94ab39a82773362e5b1abd66f6
parentee228024933069b93ce23a1bd5eeb7ae12c792f2
use struct sha1_array in diff_tree_combined()

Maintaining an array of hashes is easier using sha1_array than
open-coding it.  This patch also fixes a leak of the SHA1 array
in  diff_tree_combined_merge().

Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff.c
combine-diff.c
diff.h
submodule.c