From bba520774fd6185f62a6bf52c61b98104a826f5f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 19 Apr 2018 22:43:08 +0300 Subject: Add support for comma-separated list of git reference filter --- libbpkg/manifest.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libbpkg/manifest.hxx') diff --git a/libbpkg/manifest.hxx b/libbpkg/manifest.hxx index fdec69e..f3223b6 100644 --- a/libbpkg/manifest.hxx +++ b/libbpkg/manifest.hxx @@ -849,6 +849,8 @@ namespace bpkg public: // Parse the [][@] repository URL fragment representation. + // Throw std::invalid_argument if the filter representation format is + // invalid. // explicit git_ref_filter (const std::string&); @@ -859,6 +861,14 @@ namespace bpkg commit (std::move (c)) {} }; + using git_ref_filters = std::vector; + + // Parse a comma-separated list of git reference filters. Throw + // std::invalid_argument if the filter list format is invalid. + // + LIBBPKG_EXPORT git_ref_filters + parse_git_ref_filters (const std::string&); + enum class repository_role { base, -- cgit v1.1