diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-04 10:22:36 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-05 09:39:56 +0100 |
commit | d9f39250d302152d19a0aacd76eabae7a013f1a8 (patch) | |
tree | 3e746e215cd9b71571df84848dc874572a8d67e0 /src/buildtool/file_system/git_repo.hpp | |
parent | 8b4ca88a78c518017b5ea88be7cb6664c5c8d684 (diff) | |
download | justbuild-d9f39250d302152d19a0aacd76eabae7a013f1a8.tar.gz |
GitRepo: keep GuardedRepo unexposed and adjust the interface.
Diffstat (limited to 'src/buildtool/file_system/git_repo.hpp')
-rw-r--r-- | src/buildtool/file_system/git_repo.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buildtool/file_system/git_repo.hpp b/src/buildtool/file_system/git_repo.hpp index 94fae348..d95e5710 100644 --- a/src/buildtool/file_system/git_repo.hpp +++ b/src/buildtool/file_system/git_repo.hpp @@ -355,13 +355,12 @@ class GitRepo { /// \brief Open real repository at given location. explicit GitRepo(std::filesystem::path const& repo_path) noexcept; - [[nodiscard]] auto GetRepoRef() const noexcept -> GuardedRepoPtr; + [[nodiscard]] auto GetGitRepository() const& noexcept -> git_repository&; [[nodiscard]] auto GetGitPath() const noexcept -> std::filesystem::path const&; - [[nodiscard]] auto GetGitOdb() const noexcept - -> std::unique_ptr<git_odb, decltype(&odb_closer)> const&; + [[nodiscard]] auto GetGitOdb() const& noexcept -> git_odb&; using StoreDirEntryFunc = std::function<bool(std::filesystem::path const&, ObjectType type)>; |