diff options
author | James Fargher <proglottis@gmail.com> | 2021-08-10 00:23:44 +0300 |
---|---|---|
committer | James Fargher <proglottis@gmail.com> | 2021-08-10 00:23:44 +0300 |
commit | 0a4e1c785063f4ad2cef80303fa10276e2e4e2a6 (patch) | |
tree | 66f01017a21795ccef4fcc56dd959da1eed4f19f /ruby | |
parent | 8fe0f38a98ddcc5e2cb68f7593e1514c6a1287b1 (diff) | |
parent | cb8c7392b544ece7c27fdd2467b2afcab7c0b400 (diff) |
Merge branch 'list_refs_rpc' into 'master'
Add ListRef RPC to list all refs
See merge request gitlab-org/gitaly!3731
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/proto/gitaly/ref_pb.rb | 15 | ||||
-rw-r--r-- | ruby/proto/gitaly/ref_services_pb.rb | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ruby/proto/gitaly/ref_pb.rb b/ruby/proto/gitaly/ref_pb.rb index 4d9bf14f4..ac2b224df 100644 --- a/ruby/proto/gitaly/ref_pb.rb +++ b/ruby/proto/gitaly/ref_pb.rb @@ -203,6 +203,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do end add_message "gitaly.PackRefsResponse" do end + add_message "gitaly.ListRefsRequest" do + optional :repository, :message, 1, "gitaly.Repository" + repeated :patterns, :bytes, 2 + optional :head, :bool, 3 + end + add_message "gitaly.ListRefsResponse" do + repeated :references, :message, 1, "gitaly.ListRefsResponse.Reference" + end + add_message "gitaly.ListRefsResponse.Reference" do + optional :name, :bytes, 1 + optional :target, :string, 2 + end end end @@ -257,4 +269,7 @@ module Gitaly FindAllRemoteBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllRemoteBranchesResponse").msgclass PackRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsRequest").msgclass PackRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsResponse").msgclass + ListRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest").msgclass + ListRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse").msgclass + ListRefsResponse::Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse.Reference").msgclass end diff --git a/ruby/proto/gitaly/ref_services_pb.rb b/ruby/proto/gitaly/ref_services_pb.rb index 8d01f5118..b27542e28 100644 --- a/ruby/proto/gitaly/ref_services_pb.rb +++ b/ruby/proto/gitaly/ref_services_pb.rb @@ -43,6 +43,10 @@ module Gitaly rpc :ListNewCommits, ::Gitaly::ListNewCommitsRequest, stream(::Gitaly::ListNewCommitsResponse) rpc :ListNewBlobs, ::Gitaly::ListNewBlobsRequest, stream(::Gitaly::ListNewBlobsResponse) rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse + # ListRefs returns a stream of all references in the repository. By default, pseudo-revisions like HEAD + # will not be returned by this RPC. Any symbolic references will be resolved to the object ID it is + # pointing at. + rpc :ListRefs, ::Gitaly::ListRefsRequest, stream(::Gitaly::ListRefsResponse) end Stub = Service.rpc_stub_class |