]> git.ipfire.org Git - thirdparty/git.git/commit
fetch-object: unify fetch_object[s] functions
authorJonathan Tan <jonathantanmy@google.com>
Wed, 12 Sep 2018 15:47:37 +0000 (08:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Sep 2018 20:56:19 +0000 (13:56 -0700)
commit8708ca09a67aeccab1d6852382cfd9267a8a395e
tree78eb4e662c0c0c5a571604ae360f355b48c3c043
parent1d4361b0f344188ab5eec6dcea01f61a3a3a1670
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 <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-object.c
fetch-object.h
sha1-file.c
unpack-trees.c