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/types-parsers.hxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'bpkg/types-parsers.hxx') diff --git a/bpkg/types-parsers.hxx b/bpkg/types-parsers.hxx index dba459a..7bbb414 100644 --- a/bpkg/types-parsers.hxx +++ b/bpkg/types-parsers.hxx @@ -84,6 +84,29 @@ namespace bpkg }; template <> + struct parser + { + static void + parse (git_protocol_capabilities&, bool&, scanner&); + + static void + merge (git_protocol_capabilities& b, const git_protocol_capabilities& a) + { + b = a; + } + }; + + template <> + struct parser + { + static void + parse (git_capabilities_map&, bool&, scanner&); + + static void + merge (git_capabilities_map&, const git_capabilities_map&); + }; + + template <> struct parser { static void -- cgit v1.1