diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-05-23 15:19:28 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-05-31 15:21:02 +0200 |
commit | bc93b16bf6eccf23d7018444872867f97f5dc94d (patch) | |
tree | 412c03a39f98eec84d98ab10f0af3ab586d6c7e6 /src/buildtool/file_system/git_repo.hpp | |
parent | da9c8f50b1a841830f3323f0438de2f3a0974022 (diff) | |
download | justbuild-bc93b16bf6eccf23d7018444872867f97f5dc94d.tar.gz |
FileRoot: Add ignore-special roots logic
Diffstat (limited to 'src/buildtool/file_system/git_repo.hpp')
-rw-r--r-- | src/buildtool/file_system/git_repo.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<tree_entries_t>; /// \brief Create a flat tree from entries and store tree in CAS. |