diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-01-11 21:39:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-01-12 13:07:30 +0300 |
commit | db4a9915b25ab682762eb73d65aab44e6bddcc1f (patch) | |
tree | a4be1c133feb07948dff504abb5e4f9cf9defe84 /bpkg/types-parsers.hxx | |
parent | 01c179eed3fcfccc7cdd262742935177dfcf5106 (diff) |
Add --git-capabilities common option
Diffstat (limited to 'bpkg/types-parsers.hxx')
-rw-r--r-- | bpkg/types-parsers.hxx | 23 |
1 files changed, 23 insertions, 0 deletions
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<git_protocol_capabilities> + { + 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<git_capabilities_map> + { + static void + parse (git_capabilities_map&, bool&, scanner&); + + static void + merge (git_capabilities_map&, const git_capabilities_map&); + }; + + template <> struct parser<stdout_format> { static void |