diff options
Diffstat (limited to 'src/buildtool/file_system/git_cas.hpp')
-rw-r--r-- | src/buildtool/file_system/git_cas.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/buildtool/file_system/git_cas.hpp b/src/buildtool/file_system/git_cas.hpp index f95cb403..3ef8b6d8 100644 --- a/src/buildtool/file_system/git_cas.hpp +++ b/src/buildtool/file_system/git_cas.hpp @@ -34,7 +34,7 @@ class GitCAS { static auto Open(std::filesystem::path const& repo_path) noexcept -> GitCASPtr; - GitCAS() noexcept = default; + GitCAS() noexcept; ~GitCAS() noexcept = default; // prohibit moves and copies @@ -62,8 +62,6 @@ class GitCAS { -> std::optional<std::pair<std::size_t, ObjectType>>; private: - // IMPORTANT: the GitContext needs to be initialized before any git object! - GitContext git_context_{}; // maintains a Git context while CAS is alive std::unique_ptr<git_odb, decltype(&odb_closer)> odb_{nullptr, odb_closer}; // git folder path of repo std::filesystem::path git_path_{}; |