diff options
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 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<git_odb, decltype(&odb_closer)> const&; + [[nodiscard]] auto GetGitOdb() const& noexcept -> git_odb&; using StoreDirEntryFunc = std::function<bool(std::filesystem::path const&, ObjectType type)>; |