diff options
Diffstat (limited to 'src/buildtool/file_system/git_context.cpp')
-rw-r--r-- | src/buildtool/file_system/git_context.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/buildtool/file_system/git_context.cpp b/src/buildtool/file_system/git_context.cpp index 04d4498d..084e9d58 100644 --- a/src/buildtool/file_system/git_context.cpp +++ b/src/buildtool/file_system/git_context.cpp @@ -15,6 +15,7 @@ #include "src/buildtool/file_system/git_context.hpp" #include "src/buildtool/logging/logger.hpp" +#include "src/utils/cpp/gsl.hpp" extern "C" { #include <git2.h> @@ -34,4 +35,9 @@ GitContext::~GitContext() noexcept { git_libgit2_shutdown(); } #endif -}
\ No newline at end of file +} + +void GitContext::Create() noexcept { + static GitContext git_state{}; + Expects(git_state.initialized_); +} |