From 7f98d19a8c6a6697e246338d2c3a0640cd9528c8 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 23 Jan 2023 14:53:03 +0100 Subject: Just-MR: Remove obsolete GET_BRANCH_REFNAME critical Git operation As now all remote Git operations in GitRepo require at most just the branch name, there is no more need to inquire the repository about branch refspecs. --- src/buildtool/file_system/git_repo.hpp | 8 -------- 1 file changed, 8 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 3e3bf178..160a67df 100644 --- a/src/buildtool/file_system/git_repo.hpp +++ b/src/buildtool/file_system/git_repo.hpp @@ -138,14 +138,6 @@ class GitRepo { [[nodiscard]] auto GetHeadCommit(anon_logger_ptr const& logger) noexcept -> std::optional; - /// \brief Get the local refname of a given branch. - /// Only possible with real repository and thus non-thread-safe. - /// Returns the refname as a string, or nullopt if failure. - /// It guarantees the logger is called exactly once with fatal if failure. - [[nodiscard]] auto GetBranchLocalRefname( - std::string const& branch, - anon_logger_ptr const& logger) noexcept -> std::optional; - /// \brief Retrieve commit hash from remote branch given its name. /// Only possible with real repository and thus non-thread-safe. /// Returns the retrieved commit hash, or nullopt if failure. -- cgit v1.2.3