aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-checkout.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-checkout.hxx')
-rw-r--r--bpkg/pkg-checkout.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/bpkg/pkg-checkout.hxx b/bpkg/pkg-checkout.hxx
index d95cc77..30b96ee 100644
--- a/bpkg/pkg-checkout.hxx
+++ b/bpkg/pkg-checkout.hxx
@@ -5,7 +5,8 @@
#ifndef BPKG_PKG_CHECKOUT_HXX
#define BPKG_PKG_CHECKOUT_HXX
-#include <libbpkg/manifest.hxx> // version
+#include <libbpkg/manifest.hxx> // version
+#include <libbpkg/package-name.hxx>
#include <bpkg/types.hxx>
#include <bpkg/forward.hxx> // transaction, selected_package
@@ -19,13 +20,14 @@ namespace bpkg
pkg_checkout (const pkg_checkout_options&, cli::scanner& args);
// Check out the package from a version control-based repository and commit
- // the transaction.
+ // the transaction. Can return a new selected package object, replacing the
+ // existing one.
//
shared_ptr<selected_package>
pkg_checkout (const common_options&,
const dir_path& configuration,
transaction&,
- string name,
+ package_name,
version,
bool replace,
bool simulate);