From ee16762d8435ec1a6dfe4a82655cde5624bb2c38 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 12 Mar 2018 19:21:01 +0300 Subject: Add support for shallow fetch --- bpkg/rep-fetch.hxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bpkg/rep-fetch.hxx') diff --git a/bpkg/rep-fetch.hxx b/bpkg/rep-fetch.hxx index 030b192..18a50e9 100644 --- a/bpkg/rep-fetch.hxx +++ b/bpkg/rep-fetch.hxx @@ -51,14 +51,17 @@ namespace bpkg bool ignore_unknown); // Add (or update) repository locations to the configuration and fetch - // them. On failure clean up the configuration (see rep_remove_clean() for - // details). Note that it should be called in session. + // them. If shallow is true, then don't fetch their prerequisite and/or + // complements unless the respective sets have changed. On failure clean up + // the configuration (see rep_remove_clean() for details). Note that it + // should be called in session. // void rep_fetch (const common_options&, const dir_path& conf, database&, - const vector&); + const vector&, + bool shallow); } #endif // BPKG_REP_FETCH_HXX -- cgit v1.1