summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_tree.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/git_tree.hpp')
-rw-r--r--src/buildtool/file_system/git_tree.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildtool/file_system/git_tree.hpp b/src/buildtool/file_system/git_tree.hpp
index eb1c2147..25218634 100644
--- a/src/buildtool/file_system/git_tree.hpp
+++ b/src/buildtool/file_system/git_tree.hpp
@@ -47,6 +47,7 @@ class GitTree {
[[nodiscard]] auto end() const noexcept { return entries_.end(); }
[[nodiscard]] auto Hash() const noexcept { return ToHexString(raw_id_); }
[[nodiscard]] auto RawHash() const noexcept { return raw_id_; }
+ [[nodiscard]] auto Size() const noexcept -> std::optional<std::size_t>;
private:
gsl::not_null<GitCASPtr> cas_;