diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-04 13:18:39 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-05 11:08:08 +0100 |
commit | 7b50ad08180edb160d023ed61518cd9256f65f70 (patch) | |
tree | 0a956032f8f5c00229d16b305c86695c58e121ac /src/buildtool/file_system/git_utils.hpp | |
parent | 99860b78304817c4d5b27ec4c661b733e30a430a (diff) | |
download | justbuild-7b50ad08180edb160d023ed61518cd9256f65f70.tar.gz |
GitCAS: retain git_repository alive.
Diffstat (limited to 'src/buildtool/file_system/git_utils.hpp')
-rw-r--r-- | src/buildtool/file_system/git_utils.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtool/file_system/git_utils.hpp b/src/buildtool/file_system/git_utils.hpp index b39551fe..10e97d19 100644 --- a/src/buildtool/file_system/git_utils.hpp +++ b/src/buildtool/file_system/git_utils.hpp @@ -24,6 +24,7 @@ extern "C" { struct git_oid; struct git_odb; +struct git_repository; struct git_tree; struct git_signature; struct git_object; @@ -47,6 +48,8 @@ constexpr std::size_t kGitLockNumTries{10}; void odb_closer(gsl::owner<git_odb*> odb); +void repository_closer(gsl::owner<git_repository*> repository); + void tree_closer(gsl::owner<git_tree*> tree); void signature_closer(gsl::owner<git_signature*> signature); |