aboutsummaryrefslogtreecommitdiff
path: root/bdep/init.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-24 16:02:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-24 16:02:58 +0200
commitb7f2331713003e479388d9decc4621e3ee77f716 (patch)
treebf95cbf2a515db82026a7ff724c5baa258bfd1ff /bdep/init.hxx
parentf96f707ae4598e2ecc616a6e2aa47ace943c7eb5 (diff)
Add --no-sync option to bdep-init
This allows postponing initialization in the build configurations to a later explicit bdep-sync. One subtle difference with such an explicit sync is that it will be performed without having the project database open, which can be important if our initialization triggers an implicit sync (via a hook) of a project that uses the same database (as is the case with build system module projects).
Diffstat (limited to 'bdep/init.hxx')
-rw-r--r--bdep/init.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/bdep/init.hxx b/bdep/init.hxx
index 8569f91..0aec927 100644
--- a/bdep/init.hxx
+++ b/bdep/init.hxx
@@ -27,7 +27,8 @@ namespace bdep
bool config_create_specified);
// Initialize each package in each configuration skipping those that are
- // already initialized. Then synchronize each configuration.
+ // already initialized. Then synchronize each configuration unless sync
+ // is false.
//
void
cmd_init (const common_options&,
@@ -35,7 +36,8 @@ namespace bdep
database&,
const configurations&,
const package_locations&,
- const strings& pkg_args);
+ const strings& pkg_args,
+ bool sync = true);
int
cmd_init (const cmd_init_options&, cli::group_scanner& args);