diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-05-09 12:58:17 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-06-04 14:34:44 +0200 |
commit | ecb6a45bf6d97000519b567d2e5269fffce780dd (patch) | |
tree | d947debc53778ff0d1b61f3af82d758730795df3 /src/buildtool/file_system/git_cas.hpp | |
parent | 314e28ee1a357a9b256e3c6c528c8a8a18989880 (diff) | |
download | justbuild-ecb6a45bf6d97000519b567d2e5269fffce780dd.tar.gz |
git_cas: Be explicit in hash type (raw or hex) when reading
Diffstat (limited to 'src/buildtool/file_system/git_cas.hpp')
-rw-r--r-- | src/buildtool/file_system/git_cas.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<std::string>; @@ -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<std::pair<std::size_t, ObjectType>>; private: |