diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-16 10:31:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-16 10:43:30 +0200 |
commit | ab2eb3625208211d6523402d38a54dc60d489119 (patch) | |
tree | 606d19fa5f6f3e22fadcd341c09da4a3368355c8 /bdep/sync.hxx | |
parent | 999c3b70fc3b970727042ff0e4def04b2aa41652 (diff) |
Force full refetch on first bdep-init for project (GH issue #343)
Diffstat (limited to 'bdep/sync.hxx')
-rw-r--r-- | bdep/sync.hxx | 13 |
1 files changed, 8 insertions, 5 deletions
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<configuration>&, bool implicit, const strings& pkg_args = strings (), - bool fetch = true, + optional<bool> 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, |