From b7f2331713003e479388d9decc4621e3ee77f716 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 24 Oct 2019 16:02:58 +0200 Subject: 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). --- bdep/init.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bdep/init.hxx') 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); -- cgit v1.1