From ecb6a45bf6d97000519b567d2e5269fffce780dd Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 9 May 2025 12:58:17 +0200 Subject: git_cas: Be explicit in hash type (raw or hex) when reading --- src/buildtool/file_system/git_cas.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/file_system/git_cas.hpp') diff --git a/src/buildtool/file_system/git_cas.hpp b/src/buildtool/file_system/git_cas.hpp index 5c5a3f31..299f7a2f 100644 --- a/src/buildtool/file_system/git_cas.hpp +++ b/src/buildtool/file_system/git_cas.hpp @@ -68,7 +68,7 @@ class GitCAS { /// \param log_failure Log level at which to log failures accessing the /// object. [[nodiscard]] auto ReadObject(std::string const& id, - bool is_hex_id = false, + bool is_hex_id, LogLevel log_failure = LogLevel::Warning) const noexcept -> std::optional; @@ -79,7 +79,7 @@ class GitCAS { // Note that most backends do not support reading only the header of an // object, so the whole object will be read and then the header will be // returned. - [[nodiscard]] auto ReadHeader(std::string const& id, bool is_hex_id = false) + [[nodiscard]] auto ReadHeader(std::string const& id, bool is_hex_id) const noexcept -> std::optional>; private: -- cgit v1.2.3