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>
Jonathan Tan committed
Aug 17, 2020 at 12:48 UTC
ece9aea2c139764a82f162697586bc738873fb2f
1 file changed
+4
fetch-pack.c
+4
@@ -794,6 +794,10 @@ static void write_promisor_file(const char *keep_name,
794
strbuf_release(&promisor_name);
795
}
796
797
+/*
798
+ * Pass 1 as "only_packfile" if the pack received is the only pack in this
799
+ * fetch request (that is, if there were no packfile URIs provided).
800
+ */
801
static int get_pack(struct fetch_pack_args *args,
802
int xd[2], struct string_list *pack_lockfiles,
803
int only_packfile,