Skip to content

Commit 4937291

Browse files
jonathantanmygitster
authored andcommitted
connected: document connectivity in partial clones
In acb0c57 ("fetch: support filters", 2017-12-08), check_connected() was extended to allow objects to either be promised to be available (if the repository is a partial clone) or to be present; previously, this function required the latter. However, this change was not reflected in the documentation of that function. Update the documentation accordingly. Signed-off-by: Jonathan Tan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 150f307 commit 4937291

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

connected.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ struct check_connected_options {
5151
#define CHECK_CONNECTED_INIT { 0 }
5252

5353
/*
54-
* Make sure that our object store has all the commits necessary to
55-
* connect the ancestry chain to some of our existing refs, and all
56-
* the trees and blobs that these commits use.
54+
* Make sure that all given objects and all objects reachable from them
55+
* either exist in our object store or (if the repository is a partial
56+
* clone) are promised to be available.
5757
*
5858
* Return 0 if Ok, non zero otherwise (i.e. some missing objects)
5959
*

0 commit comments

Comments
 (0)