summaryrefslogtreecommitdiff
path: root/sha1-file.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2019-06-25 13:40:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-25 21:05:37 (GMT)
commit2e860675b6572cf476e99888134a5b307fd7eb62 (patch)
tree6124c53def1e39c5e43af320984850ab17741367 /sha1-file.c
parentc59c7c879ef60b2b0d0b050982712c53ec4d0680 (diff)
downloadgit-2e860675b6572cf476e99888134a5b307fd7eb62.zip
git-2e860675b6572cf476e99888134a5b307fd7eb62.tar.gz
git-2e860675b6572cf476e99888134a5b307fd7eb62.tar.bz2
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1-file.c b/sha1-file.c
index 888b602..819d32c 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.
*/