summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_cas.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2022-08-22 13:28:41 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2022-12-20 16:02:14 +0100
commitaf20b222322d943595cd580404eda7be7a0b5ba4 (patch)
tree9a1ba4538318789454d6f3cdf3ef75610b2e9ac0 /src/buildtool/file_system/git_cas.hpp
parentfffd49d98c4403cdad3f3a384d735875d916c156 (diff)
downloadjustbuild-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.hpp4
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