diff options
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 |