diff options
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.cpp')
-rw-r--r-- | src/buildtool/serve_api/remote/serve_api.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.cpp b/src/buildtool/serve_api/remote/serve_api.cpp index 0b0493d7..0c5c531c 100644 --- a/src/buildtool/serve_api/remote/serve_api.cpp +++ b/src/buildtool/serve_api/remote/serve_api.cpp @@ -29,3 +29,13 @@ auto ServeApi::RetrieveTreeFromCommit(std::string const& commit, -> std::optional<std::string> { return stc_->ServeCommitTree(commit, subdir, sync_tree); } + +auto ServeApi::RetrieveTreeFromArchive( + std::string const& content, + std::string const& archive_type, + std::string const& subdir, + std::optional<PragmaSpecial> const& resolve_symlinks, + bool sync_tree) -> std::optional<std::string> { + return stc_->ServeArchiveTree( + content, archive_type, subdir, resolve_symlinks, sync_tree); +} |