From bc93b16bf6eccf23d7018444872867f97f5dc94d Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 23 May 2023 15:19:28 +0200 Subject: FileRoot: Add ignore-special roots logic --- src/buildtool/file_system/git_repo.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/buildtool/file_system/git_repo.hpp') diff --git a/src/buildtool/file_system/git_repo.hpp b/src/buildtool/file_system/git_repo.hpp index c66a54db..43c5fa22 100644 --- a/src/buildtool/file_system/git_repo.hpp +++ b/src/buildtool/file_system/git_repo.hpp @@ -81,8 +81,10 @@ class GitRepo { /// repository is required. /// \param id The object id. /// \param is_hex_id Specify whether `id` is hex string or raw. + /// \param ignore_special If set, treat symlinks as absent. [[nodiscard]] auto ReadTree(std::string const& id, - bool is_hex_id = false) const noexcept + bool is_hex_id = false, + bool ignore_special = false) const noexcept -> std::optional; /// \brief Create a flat tree from entries and store tree in CAS. -- cgit v1.2.3