diff options
author | Christian Couder <christian.couder@gmail.com> | 2019-06-25 16:40:26 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-26 00:05:37 +0300 |
commit | 2e860675b6572cf476e99888134a5b307fd7eb62 (patch) | |
tree | 6124c53def1e39c5e43af320984850ab17741367 /sha1-file.c | |
parent | c59c7c879ef60b2b0d0b050982712c53ec4d0680 (diff) |
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>
Diffstat (limited to 'sha1-file.c')
-rw-r--r-- | sha1-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1-file.c b/sha1-file.c index 888b6024d5..819d32cdb8 100644 --- a/sha1-file.c +++ b/sha1-file.c @@ -1381,8 +1381,8 @@ int oid_object_info_extended(struct repository *r, const struct object_id *oid, !already_retried && r == the_repository && !(flags & OBJECT_INFO_SKIP_FETCH_OBJECT)) { /* - * TODO Investigate having fetch_object() return - * TODO error/success and stopping the music here. + * TODO Investigate checking fetch_object() return + * TODO value and stopping on error here. * TODO Pass a repository struct through fetch_object, * such that arbitrary repositories work. */ |