From 21014f3be3e4f8ebf34243f4f10841f0fb0b3843 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 22 Jul 2024 16:41:52 +0200 Subject: Rename HashFunction methods and enums --- src/buildtool/execution_api/local/local_cas_reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/local/local_cas_reader.cpp') diff --git a/src/buildtool/execution_api/local/local_cas_reader.cpp b/src/buildtool/execution_api/local/local_cas_reader.cpp index 397c02ad..fd7ede7f 100644 --- a/src/buildtool/execution_api/local/local_cas_reader.cpp +++ b/src/buildtool/execution_api/local/local_cas_reader.cpp @@ -60,10 +60,10 @@ auto LocalCasReader::ReadGitTree(ArtifactDigest const& digest) const noexcept }; // Git-SHA1 hashing is used for reading from git. - HashFunction const hash_function{HashFunction::JustHash::Native}; + HashFunction const hash_function{HashFunction::Type::GitSHA1}; return GitRepo::ReadTreeData( *content, - hash_function.ComputeTreeHash(*content).Bytes(), + hash_function.HashTreeData(*content).Bytes(), check_symlinks, /*is_hex_id=*/false); } -- cgit v1.2.3