Skip to content

Commit 42d418d

Browse files
jonathantanmygitster
authored andcommitted
(various): document from_promisor parameter
88e2f9e ("introduce fetch-object: fetch one promisor object", 2017-12-05) plumbed through the from_promisor parameter but did not document it everywhere it appeared. Add the documentation. (It also plumbed through the no_dependents parameter, but I have left that alone because it is being removed in a commit under review [1].) [1] https://lore.kernel.org/git/e8f16d69089a5011c355d5939c56fa53b7a1eb2d.1597184949.git.jonathantanmy@google.com/ Signed-off-by: Jonathan Tan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 878e727 commit 42d418d

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

fetch-pack.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ struct fetch_pack_args {
4040
unsigned cloning:1;
4141
unsigned update_shallow:1;
4242
unsigned deepen:1;
43+
44+
/*
45+
* Indicate that the remote of this request is a promisor remote. The
46+
* pack received does not need all referred-to objects to be present in
47+
* the local object store, and fetch-pack will store the pack received
48+
* together with a ".promisor" file indicating that the aforementioned
49+
* pack is a promisor pack.
50+
*/
4351
unsigned from_promisor:1;
4452

4553
/*

remote-curl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ struct options {
3939
/* One of the SEND_PACK_PUSH_CERT_* constants. */
4040
push_cert : 2,
4141
deepen_relative : 1,
42+
43+
/* see documentation of corresponding flag in fetch-pack.h */
4244
from_promisor : 1,
45+
4346
no_dependents : 1,
4447
atomic : 1,
4548
object_format : 1;

transport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ struct git_transport_options {
1515
unsigned self_contained_and_connected : 1;
1616
unsigned update_shallow : 1;
1717
unsigned deepen_relative : 1;
18+
19+
/* see documentation of corresponding flag in fetch-pack.h */
1820
unsigned from_promisor : 1;
21+
1922
unsigned no_dependents : 1;
2023

2124
/*

0 commit comments

Comments
 (0)