From: Jonathan Tan Date: Wed, 12 Sep 2018 15:47:37 +0000 (-0700) Subject: fetch-object: unify fetch_object[s] functions X-Git-Tag: v2.19.2~57^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8708ca09a67aeccab1d6852382cfd9267a8a395e?hp=8708ca09a67aeccab1d6852382cfd9267a8a395e fetch-object: unify fetch_object[s] functions There are fetch_object() and fetch_objects() helpers in fetch-object.h; as the latter takes "struct oid_array", the former cannot be made into a thin wrapper around the latter without an extra allocation and set-up cost. Update fetch_objects() to take an array of "struct object_id" and number of elements in it as separate parameters, remove fetch_object(), and adjust all existing callers of these functions to use the new fetch_objects(). Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano ---