summaryrefslogtreecommitdiff
path: root/object-store.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-06-17 17:15:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-17 17:15:14 (GMT)
commit5d5c46b28c04348f7b680e5fe007c6344a86a70a (patch)
treeecb93914f4ecf98aadce766bf0a30c05cd8d2fa9 /object-store.h
parent0aae918dd929862d3ce0ea2960897787bb269a3b (diff)
parent31f5256c82a36edea3ea2f91e5171e3472878915 (diff)
downloadgit-5d5c46b28c04348f7b680e5fe007c6344a86a70a.zip
git-5d5c46b28c04348f7b680e5fe007c6344a86a70a.tar.gz
git-5d5c46b28c04348f7b680e5fe007c6344a86a70a.tar.bz2
Merge branch 'ds/object-info-for-prefetch-fix'
Code cleanup and futureproof. * ds/object-info-for-prefetch-fix: sha1-file: split OBJECT_INFO_FOR_PREFETCH
Diffstat (limited to 'object-store.h')
-rw-r--r--object-store.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/object-store.h b/object-store.h
index 272e01e..49f56ab 100644
--- a/object-store.h
+++ b/object-store.h
@@ -277,10 +277,14 @@ struct object_info {
#define OBJECT_INFO_IGNORE_LOOSE 16
/*
* Do not attempt to fetch the object if missing (even if fetch_is_missing is
- * nonzero). This is meant for bulk prefetching of missing blobs in a partial
- * clone. Implies OBJECT_INFO_QUICK.
+ * nonzero).
*/
-#define OBJECT_INFO_FOR_PREFETCH (32 + OBJECT_INFO_QUICK)
+#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
+/*
+ * This is meant for bulk prefetching of missing blobs in a partial
+ * clone. Implies OBJECT_INFO_SKIP_FETCH_OBJECT and OBJECT_INFO_QUICK
+ */
+#define OBJECT_INFO_FOR_PREFETCH (OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_QUICK)
int oid_object_info_extended(struct repository *r,
const struct object_id *,