diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2022-08-22 13:28:41 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2022-12-20 16:02:14 +0100 |
commit | af20b222322d943595cd580404eda7be7a0b5ba4 (patch) | |
tree | 9a1ba4538318789454d6f3cdf3ef75610b2e9ac0 /src/buildtool/file_system/git_cas.hpp | |
parent | fffd49d98c4403cdad3f3a384d735875d916c156 (diff) | |
download | justbuild-af20b222322d943595cd580404eda7be7a0b5ba4.tar.gz |
Git CAS: Add fake repository wrapper for git odb
Diffstat (limited to 'src/buildtool/file_system/git_cas.hpp')
-rw-r--r-- | src/buildtool/file_system/git_cas.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |