diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-26 22:00:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-02 20:04:26 +0300 |
commit | 780290277a51853b2e515b16898ca0fcfa1e9e71 (patch) | |
tree | e045dd9cc4ce2726f915897157785cb40b48756f /bpkg/rep-add.hxx | |
parent | 046f9282dc7778f5df326456f1630919a5607f11 (diff) |
Update rep-fetch
Diffstat (limited to 'bpkg/rep-add.hxx')
-rw-r--r-- | bpkg/rep-add.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
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 <libbpkg/manifest.hxx> + #include <bpkg/types.hxx> +#include <bpkg/forward.hxx> // database, repository #include <bpkg/utility.hxx> #include <bpkg/rep-add-options.hxx> @@ -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<repository> + rep_add (database&, const repository_location&); } #endif // BPKG_REP_ADD_HXX |