diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-04 15:51:12 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-05 11:05:10 +0100 |
commit | 6e2ff90f698d327ff8ed7c3943166a3ad5f9b278 (patch) | |
tree | bd5ab4c07206428ae8336c6f247bfa34befed0c1 /src/buildtool/serve_api/remote/source_tree_client.hpp | |
parent | c403ab0da5095d3eb7d139f94a8e9e360e000300 (diff) | |
download | justbuild-6e2ff90f698d327ff8ed7c3943166a3ad5f9b278.tar.gz |
serve client: add custom function to ask for a foreign-file root
Diffstat (limited to 'src/buildtool/serve_api/remote/source_tree_client.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/source_tree_client.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/source_tree_client.hpp b/src/buildtool/serve_api/remote/source_tree_client.hpp index 46b17081..2ce89e4b 100644 --- a/src/buildtool/serve_api/remote/source_tree_client.hpp +++ b/src/buildtool/serve_api/remote/source_tree_client.hpp @@ -79,6 +79,14 @@ class SourceTreeClient { distfiles, bool sync_tree) noexcept -> result_t; + /// \brief Retrieve the Git tree of a foreign-file directory, if all content + /// blobs are known to the end point and, as a side effect, make that tree + /// known to the serve endpoint. + [[nodiscard]] auto ServeForeignFileTree(const std::string& content, + const std::string& name, + bool executable) noexcept + -> result_t; + /// \brief Make a given content blob available in remote CAS, if known by /// serve remote. /// \param[in] content Hash of the archive content to look up. |