aboutsummaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-09-03 12:37:01 -0700
committerJunio C Hamano <gitster@pobox.com>2020-09-03 12:37:01 -0700
commitbdccf5e086e5e45e5feccc22f9da0633c2492da1 (patch)
treebc91bd2d76286801ab6064cfc0c954ae25e4ece7 /fetch-pack.h
parent3cbff011b0f7fd5b50983f01337a3204559e25b7 (diff)
parent0bd96bea2f9718d2ce03e0bc4bbf0b5894f9b28e (diff)
downloadgit-bdccf5e086e5e45e5feccc22f9da0633c2492da1.tar.xz
Merge branch 'jt/fetch-pack-loosen-validation-with-packfile-uri'
Bugfix for "git fetch" when the packfile URI capability is in use. * jt/fetch-pack-loosen-validation-with-packfile-uri: fetch-pack: make packfile URIs work with transfer.fsckobjects fetch-pack: document only_packfile in get_pack() (various): document from_promisor parameter
Diffstat (limited to 'fetch-pack.h')
-rw-r--r--fetch-pack.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h
index 85d1e39fe7..5e747daea8 100644
--- a/fetch-pack.h
+++ b/fetch-pack.h
@@ -40,6 +40,14 @@ struct fetch_pack_args {
unsigned cloning:1;
unsigned update_shallow:1;
unsigned deepen:1;
+
+ /*
+ * Indicate that the remote of this request is a promisor remote. The
+ * pack received does not need all referred-to objects to be present in
+ * the local object store, and fetch-pack will store the pack received
+ * together with a ".promisor" file indicating that the aforementioned
+ * pack is a promisor pack.
+ */
unsigned from_promisor:1;
/*