Skip to content
  • Jonathan Tan's avatar
    fetch-object: unify fetch_object[s] functions · 8708ca09
    Jonathan Tan authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    8708ca09