Skip to content

Commit ece9aea

Browse files
jonathantanmygitster
authored andcommitted
fetch-pack: document only_packfile in get_pack()
dd4b732 ("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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 42d418d commit ece9aea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fetch-pack.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,10 @@ static void write_promisor_file(const char *keep_name,
794794
strbuf_release(&promisor_name);
795795
}
796796

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+
*/
797801
static int get_pack(struct fetch_pack_args *args,
798802
int xd[2], struct string_list *pack_lockfiles,
799803
int only_packfile,

0 commit comments

Comments
 (0)