diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-04-19 22:43:08 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-04-19 22:43:08 +0300 |
commit | bba520774fd6185f62a6bf52c61b98104a826f5f (patch) | |
tree | 4be19b347486932c7858349bb7a7c476e88dd5a4 /libbpkg/manifest.hxx | |
parent | 7cf0854121525747b438b7f94bf2d050f61fb615 (diff) |
Add support for comma-separated list of git reference filter
Diffstat (limited to 'libbpkg/manifest.hxx')
-rw-r--r-- | libbpkg/manifest.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
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 [<name>][@<commit>] 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<git_ref_filter>; + + // 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, |