X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=connected.h;h=ce2e7d8f2e535aac72fb317448ad20fb2133429b;hb=2c30e34e1a50f9d14fce8f97f3639ac0ebccd819;hp=8d5a6b3ad6fe4bb0f9ca0930f8eea82543968306;hpb=9293bf6f2ee047596d31010520a62f0559cc6097;p=thirdparty%2Fgit.git diff --git a/connected.h b/connected.h index 8d5a6b3ad6..ce2e7d8f2e 100644 --- a/connected.h +++ b/connected.h @@ -46,6 +46,14 @@ struct check_connected_options { * during a fetch. */ unsigned is_deepening_fetch : 1; + + /* + * If non-zero, only check the top-level objects referenced by the + * wanted refs (passed in as cb_data). This is useful for partial + * clones, where enumerating and excluding all promisor objects is very + * slow and the commit-walk itself becomes a no-op. + */ + unsigned check_refs_only : 1; }; #define CHECK_CONNECTED_INIT { 0 }