From ab2eb3625208211d6523402d38a54dc60d489119 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 16 Nov 2023 10:31:55 +0200 Subject: Force full refetch on first bdep-init for project (GH issue #343) --- bdep/sync.hxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'bdep/sync.hxx') diff --git a/bdep/sync.hxx b/bdep/sync.hxx index 03ba105..f951a40 100644 --- a/bdep/sync.hxx +++ b/bdep/sync.hxx @@ -42,10 +42,10 @@ namespace bdep // If the origin project packages (prj_pkgs) are specified, then non-global // configuration variables are only applied to these packages. // - // If fetch is false, don't perform a (shallow) fetch of the project - // repository. If yes is false, then don't suppress bpkg prompts. If - // name_cfg is true then include the configuration name/directory into - // progress. + // If fetch_full is not nullopt, perform a fetch of the project repository, + // shallow if false and full if true. If yes is false, then don't suppress + // bpkg prompts. If name_cfg is true then include the configuration + // name/directory into progress. // // Before automatically creating a configuration for a build-time dependency // and associating it with the project(s), the user is prompted unless the @@ -92,7 +92,7 @@ namespace bdep const shared_ptr&, bool implicit, const strings& pkg_args = strings (), - bool fetch = true, + optional fetch_full = false, // Shallow fetch. bool yes = true, bool name_cfg = false, const package_locations& prj_pkgs = {}, @@ -105,6 +105,9 @@ namespace bdep // As above but sync multiple configurations. If some configurations belong // to the same cluster, then they are synced at once. // + // Note: in the rest of cmd_sync() overloads, fetch is bool, with false + // meaning do not fetch and true -- fetch shallow. + // void cmd_sync (const common_options&, const dir_path& prj, -- cgit v1.1