From af20b222322d943595cd580404eda7be7a0b5ba4 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 22 Aug 2022 13:28:41 +0200 Subject: Git CAS: Add fake repository wrapper for git odb --- src/buildtool/file_system/git_cas.hpp | 4 ++++ 1 file changed, 4 insertions(+) (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 3670d188..47592927 100644 --- a/src/buildtool/file_system/git_cas.hpp +++ b/src/buildtool/file_system/git_cas.hpp @@ -127,9 +127,13 @@ class GitCAS { // IMPORTANT: the GitContext needs to be initialized before any git object! GitContext git_context_{}; // maintains a Git context while CAS is alive git_odb* odb_{nullptr}; + // git folder path of repo; used for logging + std::filesystem::path git_path_{}; [[nodiscard]] auto OpenODB(std::filesystem::path const& repo_path) noexcept -> bool; + + friend class GitRepo; // allow access to ODB }; #endif // INCLUDED_SRC_BUILDTOOL_FILE_SYSTEM_GIT_CAS_HPP -- cgit v1.2.3