From db4a9915b25ab682762eb73d65aab44e6bddcc1f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 11 Jan 2023 21:39:15 +0300 Subject: Add --git-capabilities common option --- bpkg/options-types.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bpkg/options-types.hxx') diff --git a/bpkg/options-types.hxx b/bpkg/options-types.hxx index 6576060..30d52a0 100644 --- a/bpkg/options-types.hxx +++ b/bpkg/options-types.hxx @@ -8,6 +8,8 @@ #include #include // move() +#include + #include namespace bpkg @@ -27,6 +29,17 @@ namespace bpkg json }; + enum class git_protocol_capabilities + { + dumb, // No shallow clone support. + smart, // Support for shallow clone, but not for unadvertised refs fetch. + unadv // Support for shallow clone and for unadvertised refs fetch. + }; + + using git_capabilities_map = butl::prefix_map; + // Qualified options. // // An option that uses this type can have its values qualified using the -- cgit v1.1