aboutsummaryrefslogtreecommitdiffstats
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-10-19 13:34:07 +0900
committerJunio C Hamano <gitster@pobox.com>2018-10-19 13:34:07 +0900
commitfa54cccf1ffcf4b49076d24062f3592b73e2bb84 (patch)
tree6a26cbcc6bbaf34845b053a3391e65f027c9fded /fetch-pack.h
parentMerge branch 'pw/diff-color-moved-ws-fix' (diff)
parentfetch-pack: exclude blobs when lazy-fetching trees (diff)
downloadgit-fa54cccf1ffcf4b49076d24062f3592b73e2bb84.tar.gz
git-fa54cccf1ffcf4b49076d24062f3592b73e2bb84.zip
Merge branch 'jt/non-blob-lazy-fetch'
A partial clone that is configured to lazily fetch missing objects will on-demand issue a "git fetch" request to the originating repository to fill not-yet-obtained objects. The request has been optimized for requesting a tree object (and not the leaf blob objects contained in it) by telling the originating repository that no blobs are needed. * jt/non-blob-lazy-fetch: fetch-pack: exclude blobs when lazy-fetching trees fetch-pack: avoid object flags if no_dependents
Diffstat (limited to 'fetch-pack.h')
-rw-r--r--fetch-pack.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h
index 5b6e868802..43ec344d95 100644
--- a/fetch-pack.h
+++ b/fetch-pack.h
@@ -43,6 +43,13 @@ struct fetch_pack_args {
unsigned from_promisor:1;
/*
+ * Attempt to fetch only the wanted objects, and not any objects
+ * referred to by them. Due to protocol limitations, extraneous
+ * objects may still be included. (When fetching non-blob
+ * objects, only blobs are excluded; when fetching a blob, the
+ * blob itself will still be sent. The client does not need to
+ * know whether a wanted object is a blob or not.)
+ *
* If 1, fetch_pack() will also not modify any object flags.
* This allows fetch_pack() to safely be called by any function,
* regardless of which object flags it uses (if any).