From 780290277a51853b2e515b16898ca0fcfa1e9e71 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 26 Feb 2018 22:00:22 +0300 Subject: Update rep-fetch --- bpkg/rep-add.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bpkg/rep-add.hxx') diff --git a/bpkg/rep-add.hxx b/bpkg/rep-add.hxx index 9f91713..192df05 100644 --- a/bpkg/rep-add.hxx +++ b/bpkg/rep-add.hxx @@ -5,7 +5,10 @@ #ifndef BPKG_REP_ADD_HXX #define BPKG_REP_ADD_HXX +#include + #include +#include // database, repository #include #include @@ -14,6 +17,13 @@ namespace bpkg { int rep_add (const rep_add_options&, cli::scanner& args); + + // Create the new repository if it is not in the database yet or update its + // location if it differs. Then add it as a complement to the root + // repository if it is not already. + // + shared_ptr + rep_add (database&, const repository_location&); } #endif // BPKG_REP_ADD_HXX -- cgit v1.1