From d10e9bbbec05e177558b351a55169b31417967a8 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 4 Dec 2024 10:22:36 +0100 Subject: GitRepo: keep GuardedRepo unexposed and adjust the interface. (cherry-picked from d9f39250d302152d19a0aacd76eabae7a013f1a8) --- src/buildtool/file_system/git_repo.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/buildtool/file_system/git_repo.hpp') diff --git a/src/buildtool/file_system/git_repo.hpp b/src/buildtool/file_system/git_repo.hpp index a937dc18..2d5f4df1 100644 --- a/src/buildtool/file_system/git_repo.hpp +++ b/src/buildtool/file_system/git_repo.hpp @@ -351,13 +351,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 const&; + [[nodiscard]] auto GetGitOdb() const& noexcept -> git_odb&; using StoreDirEntryFunc = std::function; -- cgit v1.2.3