fetch-object: make functions return an error code

The callers of the fetch_object() and fetch_objects() might
be interested in knowing if these functions succeeded or not.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Christian Couder
2019-06-25 15:40:26 +02:00
committed by Junio C Hamano
parent c59c7c879e
commit 2e860675b6
3 changed files with 12 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
struct object_id;
void fetch_objects(const char *remote_name, const struct object_id *oids,
int oid_nr);
int fetch_objects(const char *remote_name, const struct object_id *oids,
int oid_nr);
#endif