diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-09-12 17:47:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-13 22:56:19 +0200 |
commit | 8708ca09a67aeccab1d6852382cfd9267a8a395e (patch) | |
tree | 78eb4e662c0c0c5a571604ae360f355b48c3c043 /unpack-trees.c | |
parent | Git 2.19 (diff) | |
download | git-8708ca09a67aeccab1d6852382cfd9267a8a395e.tar.xz git-8708ca09a67aeccab1d6852382cfd9267a8a395e.zip |
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>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r-- | unpack-trees.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c index f25089b878..82a83dbc67 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -392,7 +392,7 @@ static int check_updates(struct unpack_trees_options *o) } if (to_fetch.nr) fetch_objects(repository_format_partial_clone, - &to_fetch); + to_fetch.oid, to_fetch.nr); fetch_if_missing = fetch_if_missing_store; oid_array_clear(&to_fetch); } |