diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-01-23 14:53:03 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-01-24 15:47:31 +0100 |
commit | 7f98d19a8c6a6697e246338d2c3a0640cd9528c8 (patch) | |
tree | 9013ea406c9d945ef0a622a89bd38b3830fa82b5 /src/buildtool/file_system/git_repo.hpp | |
parent | 7c3313a3baaa3695081a9c17b521931877babad6 (diff) | |
download | justbuild-7f98d19a8c6a6697e246338d2c3a0640cd9528c8.tar.gz |
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.
Diffstat (limited to 'src/buildtool/file_system/git_repo.hpp')
-rw-r--r-- | src/buildtool/file_system/git_repo.hpp | 8 |
1 files changed, 0 insertions, 8 deletions
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<std::string>; - /// \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<std::string>; - /// \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. |