diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-08-18 17:38:51 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-08-19 09:18:18 +0300 |
commit | c2b6939dab57a733b084e2283f38375288598c1f (patch) | |
tree | 7bbcaf29540a41ae338c506ac341089d925b1aba /proto/ref.proto | |
parent | b3bb31655c67e0fcad90de1c31de58686849a393 (diff) |
ref: Remove unused FindRefName RPC
The FindRefName RPC hasn't been used by Rails since fa0b4321 (Added
validation to AfterCreateService, 2020-03-02), which is more than a year
ago. While the stub to call this RPC still existed in Rails until
ec8ca3cdb44 (repository: Remove `#ref_name_for_sha`, 2021-08-18), it
didn't have any callers at all anymore.
Let's remove this RPC call in Gitaly.
Diffstat (limited to 'proto/ref.proto')
-rw-r--r-- | proto/ref.proto | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/proto/ref.proto b/proto/ref.proto index 0c0f08bd3..5ba7f289e 100644 --- a/proto/ref.proto +++ b/proto/ref.proto @@ -26,12 +26,6 @@ service RefService { op: ACCESSOR }; } - // Find a Ref matching the given constraints. Response may be empty. - rpc FindRefName(FindRefNameRequest) returns (FindRefNameResponse) { - option (op_type) = { - op: ACCESSOR - }; - } // Return a stream so we can divide the response in chunks of branches rpc FindLocalBranches(FindLocalBranchesRequest) returns (stream FindLocalBranchesResponse) { option (op_type) = { @@ -169,19 +163,6 @@ message FindAllTagNamesResponse { repeated bytes names = 1; } -message FindRefNameRequest { - Repository repository = 1 [(target_repository)=true]; - // Require that the resulting ref contains this commit as an ancestor - string commit_id = 2; - // Example prefix: "refs/heads/". Type bytes because that is the type of ref names. - bytes prefix = 3; -} - -message FindRefNameResponse { - // Example name: "refs/heads/master". Cannot assume UTF8, so the type is bytes. - bytes name = 1; -} - message FindLocalBranchesRequest { Repository repository = 1 [(target_repository)=true]; enum SortBy { |