diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2020-08-17 12:48:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-24 17:31:09 -0700 |
commit | ece9aea2c139764a82f162697586bc738873fb2f (patch) | |
tree | 0082018eec10fd409d4434b475fa4bd2a75c61d5 | |
parent | (various): document from_promisor parameter (diff) | |
download | tgif-ece9aea2c139764a82f162697586bc738873fb2f.tar.xz |
fetch-pack: document only_packfile in get_pack()
dd4b732df7 ("upload-pack: send part of packfile response as uri",
2020-06-10) added the "only_packfile" parameter to get_pack() but did
not document it. Add documentation.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | fetch-pack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fetch-pack.c b/fetch-pack.c index 7f20eca4f8..289121038e 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -794,6 +794,10 @@ static void write_promisor_file(const char *keep_name, strbuf_release(&promisor_name); } +/* + * Pass 1 as "only_packfile" if the pack received is the only pack in this + * fetch request (that is, if there were no packfile URIs provided). + */ static int get_pack(struct fetch_pack_args *args, int xd[2], struct string_list *pack_lockfiles, int only_packfile, |