summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/fs_utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/storage/fs_utils.hpp')
-rw-r--r--src/buildtool/storage/fs_utils.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildtool/storage/fs_utils.hpp b/src/buildtool/storage/fs_utils.hpp
index 8cc23b69..a03cc4dd 100644
--- a/src/buildtool/storage/fs_utils.hpp
+++ b/src/buildtool/storage/fs_utils.hpp
@@ -89,6 +89,12 @@ namespace StorageUtils {
std::size_t generation = 0) noexcept
-> std::filesystem::path;
+/// \brief Get the path to the file marking a known valid Git tree.
+[[nodiscard]] auto GetValidTreesMarkerFile(StorageConfig const& storage_config,
+ std::string const& tree_hash,
+ std::size_t generation = 0) noexcept
+ -> std::filesystem::path;
+
/// \brief Write a tree id to file. The parent folder of the file must exist!
[[nodiscard]] auto WriteTreeIDFile(std::filesystem::path const& tree_id_file,
std::string const& tree_id) noexcept -> bool;