From fbb434dc11686f156f6d4539ec1849d64c7207f0 Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Tue, 9 Apr 2019 09:52:01 +0200 Subject: [PATCH] Define ListCommits RPC The ListCommits RPC is a bi-directional stream to be used to open the stream once, and on demand request commits from Gitaly. Part of: https://gitlab.com/gitlab-org/gitaly/issues/1487 --- commit.proto | 22 + go/gitalypb/commit.pb.go | 660 +++++++++++++++++++------- ruby/lib/gitaly/commit_pb.rb | 15 + ruby/lib/gitaly/commit_services_pb.rb | 3 + 4 files changed, 517 insertions(+), 183 deletions(-) diff --git a/commit.proto b/commit.proto index 7e7b9e1b..359af010 100644 --- a/commit.proto +++ b/commit.proto @@ -39,6 +39,13 @@ service CommitService { rpc FindAllCommits(FindAllCommitsRequest) returns (stream FindAllCommitsResponse) { option (op_type).op = ACCESSOR; } + + // ListCommits is a bidirectional stream where the server opens one git process and as such the + // start up costs are armortized. + rpc ListCommits(stream ListCommitsRequest) returns (stream ListCommitsResponse) { + option (op_type).op = ACCESSOR; + } + rpc FindCommits(FindCommitsRequest) returns (stream FindCommitsResponse) { option (op_type).op = ACCESSOR; } @@ -220,6 +227,21 @@ message FindCommitResponse { GitCommit commit = 1; } +message ListCommitsRequest { + message Header { + Repository repository = 1; + } + + oneof payload { + Header header = 1; + bytes revision = 2; + } +} + +message ListCommitsResponse { + GitCommit commit = 1; +} + message ListCommitsByOidRequest { Repository repository = 1; repeated string oid = 2; diff --git a/go/gitalypb/commit.pb.go b/go/gitalypb/commit.pb.go index 27348d27..09820504 100644 --- a/go/gitalypb/commit.pb.go +++ b/go/gitalypb/commit.pb.go @@ -50,7 +50,7 @@ func (x TreeEntryResponse_ObjectType) String() string { return proto.EnumName(TreeEntryResponse_ObjectType_name, int32(x)) } func (TreeEntryResponse_ObjectType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{5, 0} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{5, 0} } type TreeEntry_EntryType int32 @@ -76,7 +76,7 @@ func (x TreeEntry_EntryType) String() string { return proto.EnumName(TreeEntry_EntryType_name, int32(x)) } func (TreeEntry_EntryType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{12, 0} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{12, 0} } type FindAllCommitsRequest_Order int32 @@ -102,7 +102,7 @@ func (x FindAllCommitsRequest_Order) String() string { return proto.EnumName(FindAllCommitsRequest_Order_name, int32(x)) } func (FindAllCommitsRequest_Order) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{21, 0} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{23, 0} } type CommitStatsRequest struct { @@ -117,7 +117,7 @@ func (m *CommitStatsRequest) Reset() { *m = CommitStatsRequest{} } func (m *CommitStatsRequest) String() string { return proto.CompactTextString(m) } func (*CommitStatsRequest) ProtoMessage() {} func (*CommitStatsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{0} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{0} } func (m *CommitStatsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitStatsRequest.Unmarshal(m, b) @@ -165,7 +165,7 @@ func (m *CommitStatsResponse) Reset() { *m = CommitStatsResponse{} } func (m *CommitStatsResponse) String() string { return proto.CompactTextString(m) } func (*CommitStatsResponse) ProtoMessage() {} func (*CommitStatsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{1} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{1} } func (m *CommitStatsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitStatsResponse.Unmarshal(m, b) @@ -219,7 +219,7 @@ func (m *CommitIsAncestorRequest) Reset() { *m = CommitIsAncestorRequest func (m *CommitIsAncestorRequest) String() string { return proto.CompactTextString(m) } func (*CommitIsAncestorRequest) ProtoMessage() {} func (*CommitIsAncestorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{2} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{2} } func (m *CommitIsAncestorRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitIsAncestorRequest.Unmarshal(m, b) @@ -271,7 +271,7 @@ func (m *CommitIsAncestorResponse) Reset() { *m = CommitIsAncestorRespon func (m *CommitIsAncestorResponse) String() string { return proto.CompactTextString(m) } func (*CommitIsAncestorResponse) ProtoMessage() {} func (*CommitIsAncestorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{3} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{3} } func (m *CommitIsAncestorResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitIsAncestorResponse.Unmarshal(m, b) @@ -314,7 +314,7 @@ func (m *TreeEntryRequest) Reset() { *m = TreeEntryRequest{} } func (m *TreeEntryRequest) String() string { return proto.CompactTextString(m) } func (*TreeEntryRequest) ProtoMessage() {} func (*TreeEntryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{4} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{4} } func (m *TreeEntryRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TreeEntryRequest.Unmarshal(m, b) @@ -380,7 +380,7 @@ func (m *TreeEntryResponse) Reset() { *m = TreeEntryResponse{} } func (m *TreeEntryResponse) String() string { return proto.CompactTextString(m) } func (*TreeEntryResponse) ProtoMessage() {} func (*TreeEntryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{5} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{5} } func (m *TreeEntryResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TreeEntryResponse.Unmarshal(m, b) @@ -448,7 +448,7 @@ func (m *CommitsBetweenRequest) Reset() { *m = CommitsBetweenRequest{} } func (m *CommitsBetweenRequest) String() string { return proto.CompactTextString(m) } func (*CommitsBetweenRequest) ProtoMessage() {} func (*CommitsBetweenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{6} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{6} } func (m *CommitsBetweenRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitsBetweenRequest.Unmarshal(m, b) @@ -500,7 +500,7 @@ func (m *CommitsBetweenResponse) Reset() { *m = CommitsBetweenResponse{} func (m *CommitsBetweenResponse) String() string { return proto.CompactTextString(m) } func (*CommitsBetweenResponse) ProtoMessage() {} func (*CommitsBetweenResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{7} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{7} } func (m *CommitsBetweenResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitsBetweenResponse.Unmarshal(m, b) @@ -545,7 +545,7 @@ func (m *CountCommitsRequest) Reset() { *m = CountCommitsRequest{} } func (m *CountCommitsRequest) String() string { return proto.CompactTextString(m) } func (*CountCommitsRequest) ProtoMessage() {} func (*CountCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{8} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{8} } func (m *CountCommitsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CountCommitsRequest.Unmarshal(m, b) @@ -625,7 +625,7 @@ func (m *CountCommitsResponse) Reset() { *m = CountCommitsResponse{} } func (m *CountCommitsResponse) String() string { return proto.CompactTextString(m) } func (*CountCommitsResponse) ProtoMessage() {} func (*CountCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{9} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{9} } func (m *CountCommitsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CountCommitsResponse.Unmarshal(m, b) @@ -666,7 +666,7 @@ func (m *CountDivergingCommitsRequest) Reset() { *m = CountDivergingComm func (m *CountDivergingCommitsRequest) String() string { return proto.CompactTextString(m) } func (*CountDivergingCommitsRequest) ProtoMessage() {} func (*CountDivergingCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{10} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{10} } func (m *CountDivergingCommitsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CountDivergingCommitsRequest.Unmarshal(m, b) @@ -726,7 +726,7 @@ func (m *CountDivergingCommitsResponse) Reset() { *m = CountDivergingCom func (m *CountDivergingCommitsResponse) String() string { return proto.CompactTextString(m) } func (*CountDivergingCommitsResponse) ProtoMessage() {} func (*CountDivergingCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{11} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{11} } func (m *CountDivergingCommitsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CountDivergingCommitsResponse.Unmarshal(m, b) @@ -783,7 +783,7 @@ func (m *TreeEntry) Reset() { *m = TreeEntry{} } func (m *TreeEntry) String() string { return proto.CompactTextString(m) } func (*TreeEntry) ProtoMessage() {} func (*TreeEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{12} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{12} } func (m *TreeEntry) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TreeEntry.Unmarshal(m, b) @@ -866,7 +866,7 @@ func (m *GetTreeEntriesRequest) Reset() { *m = GetTreeEntriesRequest{} } func (m *GetTreeEntriesRequest) String() string { return proto.CompactTextString(m) } func (*GetTreeEntriesRequest) ProtoMessage() {} func (*GetTreeEntriesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{13} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{13} } func (m *GetTreeEntriesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetTreeEntriesRequest.Unmarshal(m, b) @@ -925,7 +925,7 @@ func (m *GetTreeEntriesResponse) Reset() { *m = GetTreeEntriesResponse{} func (m *GetTreeEntriesResponse) String() string { return proto.CompactTextString(m) } func (*GetTreeEntriesResponse) ProtoMessage() {} func (*GetTreeEntriesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{14} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{14} } func (m *GetTreeEntriesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetTreeEntriesResponse.Unmarshal(m, b) @@ -964,7 +964,7 @@ func (m *ListFilesRequest) Reset() { *m = ListFilesRequest{} } func (m *ListFilesRequest) String() string { return proto.CompactTextString(m) } func (*ListFilesRequest) ProtoMessage() {} func (*ListFilesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{15} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{15} } func (m *ListFilesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListFilesRequest.Unmarshal(m, b) @@ -1011,7 +1011,7 @@ func (m *ListFilesResponse) Reset() { *m = ListFilesResponse{} } func (m *ListFilesResponse) String() string { return proto.CompactTextString(m) } func (*ListFilesResponse) ProtoMessage() {} func (*ListFilesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{16} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{16} } func (m *ListFilesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListFilesResponse.Unmarshal(m, b) @@ -1050,7 +1050,7 @@ func (m *FindCommitRequest) Reset() { *m = FindCommitRequest{} } func (m *FindCommitRequest) String() string { return proto.CompactTextString(m) } func (*FindCommitRequest) ProtoMessage() {} func (*FindCommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{17} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{17} } func (m *FindCommitRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FindCommitRequest.Unmarshal(m, b) @@ -1096,7 +1096,7 @@ func (m *FindCommitResponse) Reset() { *m = FindCommitResponse{} } func (m *FindCommitResponse) String() string { return proto.CompactTextString(m) } func (*FindCommitResponse) ProtoMessage() {} func (*FindCommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{18} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{18} } func (m *FindCommitResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FindCommitResponse.Unmarshal(m, b) @@ -1123,6 +1123,223 @@ func (m *FindCommitResponse) GetCommit() *GitCommit { return nil } +type ListCommitsRequest struct { + // Types that are valid to be assigned to Payload: + // *ListCommitsRequest_Header_ + // *ListCommitsRequest_Revision + Payload isListCommitsRequest_Payload `protobuf_oneof:"payload"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListCommitsRequest) Reset() { *m = ListCommitsRequest{} } +func (m *ListCommitsRequest) String() string { return proto.CompactTextString(m) } +func (*ListCommitsRequest) ProtoMessage() {} +func (*ListCommitsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_commit_6b2c13b0769e0a67, []int{19} +} +func (m *ListCommitsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListCommitsRequest.Unmarshal(m, b) +} +func (m *ListCommitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListCommitsRequest.Marshal(b, m, deterministic) +} +func (dst *ListCommitsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListCommitsRequest.Merge(dst, src) +} +func (m *ListCommitsRequest) XXX_Size() int { + return xxx_messageInfo_ListCommitsRequest.Size(m) +} +func (m *ListCommitsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListCommitsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListCommitsRequest proto.InternalMessageInfo + +type isListCommitsRequest_Payload interface { + isListCommitsRequest_Payload() +} + +type ListCommitsRequest_Header_ struct { + Header *ListCommitsRequest_Header `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +} + +type ListCommitsRequest_Revision struct { + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3,oneof"` +} + +func (*ListCommitsRequest_Header_) isListCommitsRequest_Payload() {} + +func (*ListCommitsRequest_Revision) isListCommitsRequest_Payload() {} + +func (m *ListCommitsRequest) GetPayload() isListCommitsRequest_Payload { + if m != nil { + return m.Payload + } + return nil +} + +func (m *ListCommitsRequest) GetHeader() *ListCommitsRequest_Header { + if x, ok := m.GetPayload().(*ListCommitsRequest_Header_); ok { + return x.Header + } + return nil +} + +func (m *ListCommitsRequest) GetRevision() []byte { + if x, ok := m.GetPayload().(*ListCommitsRequest_Revision); ok { + return x.Revision + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ListCommitsRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ListCommitsRequest_OneofMarshaler, _ListCommitsRequest_OneofUnmarshaler, _ListCommitsRequest_OneofSizer, []interface{}{ + (*ListCommitsRequest_Header_)(nil), + (*ListCommitsRequest_Revision)(nil), + } +} + +func _ListCommitsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ListCommitsRequest) + // payload + switch x := m.Payload.(type) { + case *ListCommitsRequest_Header_: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Header); err != nil { + return err + } + case *ListCommitsRequest_Revision: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Revision) + case nil: + default: + return fmt.Errorf("ListCommitsRequest.Payload has unexpected type %T", x) + } + return nil +} + +func _ListCommitsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ListCommitsRequest) + switch tag { + case 1: // payload.header + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ListCommitsRequest_Header) + err := b.DecodeMessage(msg) + m.Payload = &ListCommitsRequest_Header_{msg} + return true, err + case 2: // payload.revision + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Payload = &ListCommitsRequest_Revision{x} + return true, err + default: + return false, nil + } +} + +func _ListCommitsRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ListCommitsRequest) + // payload + switch x := m.Payload.(type) { + case *ListCommitsRequest_Header_: + s := proto.Size(x.Header) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ListCommitsRequest_Revision: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Revision))) + n += len(x.Revision) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type ListCommitsRequest_Header struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListCommitsRequest_Header) Reset() { *m = ListCommitsRequest_Header{} } +func (m *ListCommitsRequest_Header) String() string { return proto.CompactTextString(m) } +func (*ListCommitsRequest_Header) ProtoMessage() {} +func (*ListCommitsRequest_Header) Descriptor() ([]byte, []int) { + return fileDescriptor_commit_6b2c13b0769e0a67, []int{19, 0} +} +func (m *ListCommitsRequest_Header) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListCommitsRequest_Header.Unmarshal(m, b) +} +func (m *ListCommitsRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListCommitsRequest_Header.Marshal(b, m, deterministic) +} +func (dst *ListCommitsRequest_Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListCommitsRequest_Header.Merge(dst, src) +} +func (m *ListCommitsRequest_Header) XXX_Size() int { + return xxx_messageInfo_ListCommitsRequest_Header.Size(m) +} +func (m *ListCommitsRequest_Header) XXX_DiscardUnknown() { + xxx_messageInfo_ListCommitsRequest_Header.DiscardUnknown(m) +} + +var xxx_messageInfo_ListCommitsRequest_Header proto.InternalMessageInfo + +func (m *ListCommitsRequest_Header) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type ListCommitsResponse struct { + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListCommitsResponse) Reset() { *m = ListCommitsResponse{} } +func (m *ListCommitsResponse) String() string { return proto.CompactTextString(m) } +func (*ListCommitsResponse) ProtoMessage() {} +func (*ListCommitsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_commit_6b2c13b0769e0a67, []int{20} +} +func (m *ListCommitsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListCommitsResponse.Unmarshal(m, b) +} +func (m *ListCommitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListCommitsResponse.Marshal(b, m, deterministic) +} +func (dst *ListCommitsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListCommitsResponse.Merge(dst, src) +} +func (m *ListCommitsResponse) XXX_Size() int { + return xxx_messageInfo_ListCommitsResponse.Size(m) +} +func (m *ListCommitsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListCommitsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListCommitsResponse proto.InternalMessageInfo + +func (m *ListCommitsResponse) GetCommit() *GitCommit { + if m != nil { + return m.Commit + } + return nil +} + type ListCommitsByOidRequest struct { Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` Oid []string `protobuf:"bytes,2,rep,name=oid,proto3" json:"oid,omitempty"` @@ -1135,7 +1352,7 @@ func (m *ListCommitsByOidRequest) Reset() { *m = ListCommitsByOidRequest func (m *ListCommitsByOidRequest) String() string { return proto.CompactTextString(m) } func (*ListCommitsByOidRequest) ProtoMessage() {} func (*ListCommitsByOidRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{19} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{21} } func (m *ListCommitsByOidRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListCommitsByOidRequest.Unmarshal(m, b) @@ -1180,7 +1397,7 @@ func (m *ListCommitsByOidResponse) Reset() { *m = ListCommitsByOidRespon func (m *ListCommitsByOidResponse) String() string { return proto.CompactTextString(m) } func (*ListCommitsByOidResponse) ProtoMessage() {} func (*ListCommitsByOidResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{20} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{22} } func (m *ListCommitsByOidResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListCommitsByOidResponse.Unmarshal(m, b) @@ -1223,7 +1440,7 @@ func (m *FindAllCommitsRequest) Reset() { *m = FindAllCommitsRequest{} } func (m *FindAllCommitsRequest) String() string { return proto.CompactTextString(m) } func (*FindAllCommitsRequest) ProtoMessage() {} func (*FindAllCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{21} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{23} } func (m *FindAllCommitsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FindAllCommitsRequest.Unmarshal(m, b) @@ -1290,7 +1507,7 @@ func (m *FindAllCommitsResponse) Reset() { *m = FindAllCommitsResponse{} func (m *FindAllCommitsResponse) String() string { return proto.CompactTextString(m) } func (*FindAllCommitsResponse) ProtoMessage() {} func (*FindAllCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{22} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{24} } func (m *FindAllCommitsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FindAllCommitsResponse.Unmarshal(m, b) @@ -1339,7 +1556,7 @@ func (m *FindCommitsRequest) Reset() { *m = FindCommitsRequest{} } func (m *FindCommitsRequest) String() string { return proto.CompactTextString(m) } func (*FindCommitsRequest) ProtoMessage() {} func (*FindCommitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{23} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{25} } func (m *FindCommitsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FindCommitsRequest.Unmarshal(m, b) @@ -1448,7 +1665,7 @@ func (m *FindCommitsResponse) Reset() { *m = FindCommitsResponse{} } func (m *FindCommitsResponse) String() string { return proto.CompactTextString(m) } func (*FindCommitsResponse) ProtoMessage() {} func (*FindCommitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{24} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{26} } func (m *FindCommitsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FindCommitsResponse.Unmarshal(m, b) @@ -1487,7 +1704,7 @@ func (m *CommitLanguagesRequest) Reset() { *m = CommitLanguagesRequest{} func (m *CommitLanguagesRequest) String() string { return proto.CompactTextString(m) } func (*CommitLanguagesRequest) ProtoMessage() {} func (*CommitLanguagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{25} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{27} } func (m *CommitLanguagesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitLanguagesRequest.Unmarshal(m, b) @@ -1532,7 +1749,7 @@ func (m *CommitLanguagesResponse) Reset() { *m = CommitLanguagesResponse func (m *CommitLanguagesResponse) String() string { return proto.CompactTextString(m) } func (*CommitLanguagesResponse) ProtoMessage() {} func (*CommitLanguagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{26} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{28} } func (m *CommitLanguagesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitLanguagesResponse.Unmarshal(m, b) @@ -1572,7 +1789,7 @@ func (m *CommitLanguagesResponse_Language) Reset() { *m = CommitLanguage func (m *CommitLanguagesResponse_Language) String() string { return proto.CompactTextString(m) } func (*CommitLanguagesResponse_Language) ProtoMessage() {} func (*CommitLanguagesResponse_Language) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{26, 0} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{28, 0} } func (m *CommitLanguagesResponse_Language) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitLanguagesResponse_Language.Unmarshal(m, b) @@ -1626,7 +1843,7 @@ func (m *RawBlameRequest) Reset() { *m = RawBlameRequest{} } func (m *RawBlameRequest) String() string { return proto.CompactTextString(m) } func (*RawBlameRequest) ProtoMessage() {} func (*RawBlameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{27} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{29} } func (m *RawBlameRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RawBlameRequest.Unmarshal(m, b) @@ -1678,7 +1895,7 @@ func (m *RawBlameResponse) Reset() { *m = RawBlameResponse{} } func (m *RawBlameResponse) String() string { return proto.CompactTextString(m) } func (*RawBlameResponse) ProtoMessage() {} func (*RawBlameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{28} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{30} } func (m *RawBlameResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RawBlameResponse.Unmarshal(m, b) @@ -1718,7 +1935,7 @@ func (m *LastCommitForPathRequest) Reset() { *m = LastCommitForPathReque func (m *LastCommitForPathRequest) String() string { return proto.CompactTextString(m) } func (*LastCommitForPathRequest) ProtoMessage() {} func (*LastCommitForPathRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{29} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{31} } func (m *LastCommitForPathRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LastCommitForPathRequest.Unmarshal(m, b) @@ -1771,7 +1988,7 @@ func (m *LastCommitForPathResponse) Reset() { *m = LastCommitForPathResp func (m *LastCommitForPathResponse) String() string { return proto.CompactTextString(m) } func (*LastCommitForPathResponse) ProtoMessage() {} func (*LastCommitForPathResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{30} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{32} } func (m *LastCommitForPathResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LastCommitForPathResponse.Unmarshal(m, b) @@ -1814,7 +2031,7 @@ func (m *ListLastCommitsForTreeRequest) Reset() { *m = ListLastCommitsFo func (m *ListLastCommitsForTreeRequest) String() string { return proto.CompactTextString(m) } func (*ListLastCommitsForTreeRequest) ProtoMessage() {} func (*ListLastCommitsForTreeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{31} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{33} } func (m *ListLastCommitsForTreeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListLastCommitsForTreeRequest.Unmarshal(m, b) @@ -1880,7 +2097,7 @@ func (m *ListLastCommitsForTreeResponse) Reset() { *m = ListLastCommitsF func (m *ListLastCommitsForTreeResponse) String() string { return proto.CompactTextString(m) } func (*ListLastCommitsForTreeResponse) ProtoMessage() {} func (*ListLastCommitsForTreeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{32} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{34} } func (m *ListLastCommitsForTreeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListLastCommitsForTreeResponse.Unmarshal(m, b) @@ -1924,7 +2141,7 @@ func (m *ListLastCommitsForTreeResponse_CommitForTree) String() string { } func (*ListLastCommitsForTreeResponse_CommitForTree) ProtoMessage() {} func (*ListLastCommitsForTreeResponse_CommitForTree) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{32, 0} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{34, 0} } func (m *ListLastCommitsForTreeResponse_CommitForTree) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListLastCommitsForTreeResponse_CommitForTree.Unmarshal(m, b) @@ -1982,7 +2199,7 @@ func (m *CommitsByMessageRequest) Reset() { *m = CommitsByMessageRequest func (m *CommitsByMessageRequest) String() string { return proto.CompactTextString(m) } func (*CommitsByMessageRequest) ProtoMessage() {} func (*CommitsByMessageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{33} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{35} } func (m *CommitsByMessageRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitsByMessageRequest.Unmarshal(m, b) @@ -2056,7 +2273,7 @@ func (m *CommitsByMessageResponse) Reset() { *m = CommitsByMessageRespon func (m *CommitsByMessageResponse) String() string { return proto.CompactTextString(m) } func (*CommitsByMessageResponse) ProtoMessage() {} func (*CommitsByMessageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{34} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{36} } func (m *CommitsByMessageResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CommitsByMessageResponse.Unmarshal(m, b) @@ -2095,7 +2312,7 @@ func (m *FilterShasWithSignaturesRequest) Reset() { *m = FilterShasWithS func (m *FilterShasWithSignaturesRequest) String() string { return proto.CompactTextString(m) } func (*FilterShasWithSignaturesRequest) ProtoMessage() {} func (*FilterShasWithSignaturesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{35} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{37} } func (m *FilterShasWithSignaturesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FilterShasWithSignaturesRequest.Unmarshal(m, b) @@ -2140,7 +2357,7 @@ func (m *FilterShasWithSignaturesResponse) Reset() { *m = FilterShasWith func (m *FilterShasWithSignaturesResponse) String() string { return proto.CompactTextString(m) } func (*FilterShasWithSignaturesResponse) ProtoMessage() {} func (*FilterShasWithSignaturesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{36} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{38} } func (m *FilterShasWithSignaturesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FilterShasWithSignaturesResponse.Unmarshal(m, b) @@ -2179,7 +2396,7 @@ func (m *ExtractCommitSignatureRequest) Reset() { *m = ExtractCommitSign func (m *ExtractCommitSignatureRequest) String() string { return proto.CompactTextString(m) } func (*ExtractCommitSignatureRequest) ProtoMessage() {} func (*ExtractCommitSignatureRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{37} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{39} } func (m *ExtractCommitSignatureRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ExtractCommitSignatureRequest.Unmarshal(m, b) @@ -2227,7 +2444,7 @@ func (m *ExtractCommitSignatureResponse) Reset() { *m = ExtractCommitSig func (m *ExtractCommitSignatureResponse) String() string { return proto.CompactTextString(m) } func (*ExtractCommitSignatureResponse) ProtoMessage() {} func (*ExtractCommitSignatureResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{38} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{40} } func (m *ExtractCommitSignatureResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ExtractCommitSignatureResponse.Unmarshal(m, b) @@ -2273,7 +2490,7 @@ func (m *GetCommitSignaturesRequest) Reset() { *m = GetCommitSignaturesR func (m *GetCommitSignaturesRequest) String() string { return proto.CompactTextString(m) } func (*GetCommitSignaturesRequest) ProtoMessage() {} func (*GetCommitSignaturesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{39} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{41} } func (m *GetCommitSignaturesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetCommitSignaturesRequest.Unmarshal(m, b) @@ -2322,7 +2539,7 @@ func (m *GetCommitSignaturesResponse) Reset() { *m = GetCommitSignatures func (m *GetCommitSignaturesResponse) String() string { return proto.CompactTextString(m) } func (*GetCommitSignaturesResponse) ProtoMessage() {} func (*GetCommitSignaturesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{40} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{42} } func (m *GetCommitSignaturesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetCommitSignaturesResponse.Unmarshal(m, b) @@ -2375,7 +2592,7 @@ func (m *GetCommitMessagesRequest) Reset() { *m = GetCommitMessagesReque func (m *GetCommitMessagesRequest) String() string { return proto.CompactTextString(m) } func (*GetCommitMessagesRequest) ProtoMessage() {} func (*GetCommitMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{41} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{43} } func (m *GetCommitMessagesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetCommitMessagesRequest.Unmarshal(m, b) @@ -2422,7 +2639,7 @@ func (m *GetCommitMessagesResponse) Reset() { *m = GetCommitMessagesResp func (m *GetCommitMessagesResponse) String() string { return proto.CompactTextString(m) } func (*GetCommitMessagesResponse) ProtoMessage() {} func (*GetCommitMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_commit_da3ad637b9b57a6c, []int{42} + return fileDescriptor_commit_6b2c13b0769e0a67, []int{44} } func (m *GetCommitMessagesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetCommitMessagesResponse.Unmarshal(m, b) @@ -2476,6 +2693,9 @@ func init() { proto.RegisterType((*ListFilesResponse)(nil), "gitaly.ListFilesResponse") proto.RegisterType((*FindCommitRequest)(nil), "gitaly.FindCommitRequest") proto.RegisterType((*FindCommitResponse)(nil), "gitaly.FindCommitResponse") + proto.RegisterType((*ListCommitsRequest)(nil), "gitaly.ListCommitsRequest") + proto.RegisterType((*ListCommitsRequest_Header)(nil), "gitaly.ListCommitsRequest.Header") + proto.RegisterType((*ListCommitsResponse)(nil), "gitaly.ListCommitsResponse") proto.RegisterType((*ListCommitsByOidRequest)(nil), "gitaly.ListCommitsByOidRequest") proto.RegisterType((*ListCommitsByOidResponse)(nil), "gitaly.ListCommitsByOidResponse") proto.RegisterType((*FindAllCommitsRequest)(nil), "gitaly.FindAllCommitsRequest") @@ -2530,6 +2750,9 @@ type CommitServiceClient interface { CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) // Use a stream to paginate the result set FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) + // ListCommits is a bidirectional stream where the server opens one git process and as such the + // start up costs are armortized. + ListCommits(ctx context.Context, opts ...grpc.CallOption) (CommitService_ListCommitsClient, error) FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) @@ -2759,8 +2982,39 @@ func (x *commitServiceFindAllCommitsClient) Recv() (*FindAllCommitsResponse, err return m, nil } +func (c *commitServiceClient) ListCommits(ctx context.Context, opts ...grpc.CallOption) (CommitService_ListCommitsClient, error) { + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[5], "/gitaly.CommitService/ListCommits", opts...) + if err != nil { + return nil, err + } + x := &commitServiceListCommitsClient{stream} + return x, nil +} + +type CommitService_ListCommitsClient interface { + Send(*ListCommitsRequest) error + Recv() (*ListCommitsResponse, error) + grpc.ClientStream +} + +type commitServiceListCommitsClient struct { + grpc.ClientStream +} + +func (x *commitServiceListCommitsClient) Send(m *ListCommitsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *commitServiceListCommitsClient) Recv() (*ListCommitsResponse, error) { + m := new(ListCommitsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *commitServiceClient) FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[5], "/gitaly.CommitService/FindCommits", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[6], "/gitaly.CommitService/FindCommits", opts...) if err != nil { return nil, err } @@ -2801,7 +3055,7 @@ func (c *commitServiceClient) CommitLanguages(ctx context.Context, in *CommitLan } func (c *commitServiceClient) RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[6], "/gitaly.CommitService/RawBlame", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[7], "/gitaly.CommitService/RawBlame", opts...) if err != nil { return nil, err } @@ -2842,7 +3096,7 @@ func (c *commitServiceClient) LastCommitForPath(ctx context.Context, in *LastCom } func (c *commitServiceClient) ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[7], "/gitaly.CommitService/ListLastCommitsForTree", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[8], "/gitaly.CommitService/ListLastCommitsForTree", opts...) if err != nil { return nil, err } @@ -2874,7 +3128,7 @@ func (x *commitServiceListLastCommitsForTreeClient) Recv() (*ListLastCommitsForT } func (c *commitServiceClient) CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[8], "/gitaly.CommitService/CommitsByMessage", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[9], "/gitaly.CommitService/CommitsByMessage", opts...) if err != nil { return nil, err } @@ -2906,7 +3160,7 @@ func (x *commitServiceCommitsByMessageClient) Recv() (*CommitsByMessageResponse, } func (c *commitServiceClient) ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[9], "/gitaly.CommitService/ListCommitsByOid", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[10], "/gitaly.CommitService/ListCommitsByOid", opts...) if err != nil { return nil, err } @@ -2938,7 +3192,7 @@ func (x *commitServiceListCommitsByOidClient) Recv() (*ListCommitsByOidResponse, } func (c *commitServiceClient) FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[10], "/gitaly.CommitService/FilterShasWithSignatures", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[11], "/gitaly.CommitService/FilterShasWithSignatures", opts...) if err != nil { return nil, err } @@ -2969,7 +3223,7 @@ func (x *commitServiceFilterShasWithSignaturesClient) Recv() (*FilterShasWithSig } func (c *commitServiceClient) ExtractCommitSignature(ctx context.Context, in *ExtractCommitSignatureRequest, opts ...grpc.CallOption) (CommitService_ExtractCommitSignatureClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[11], "/gitaly.CommitService/ExtractCommitSignature", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[12], "/gitaly.CommitService/ExtractCommitSignature", opts...) if err != nil { return nil, err } @@ -3001,7 +3255,7 @@ func (x *commitServiceExtractCommitSignatureClient) Recv() (*ExtractCommitSignat } func (c *commitServiceClient) GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[12], "/gitaly.CommitService/GetCommitSignatures", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[13], "/gitaly.CommitService/GetCommitSignatures", opts...) if err != nil { return nil, err } @@ -3033,7 +3287,7 @@ func (x *commitServiceGetCommitSignaturesClient) Recv() (*GetCommitSignaturesRes } func (c *commitServiceClient) GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) { - stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[13], "/gitaly.CommitService/GetCommitMessages", opts...) + stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[14], "/gitaly.CommitService/GetCommitMessages", opts...) if err != nil { return nil, err } @@ -3077,6 +3331,9 @@ type CommitServiceServer interface { CommitStats(context.Context, *CommitStatsRequest) (*CommitStatsResponse, error) // Use a stream to paginate the result set FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error + // ListCommits is a bidirectional stream where the server opens one git process and as such the + // start up costs are armortized. + ListCommits(CommitService_ListCommitsServer) error FindCommits(*FindCommitsRequest, CommitService_FindCommitsServer) error CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error) RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error @@ -3292,6 +3549,32 @@ func (x *commitServiceFindAllCommitsServer) Send(m *FindAllCommitsResponse) erro return x.ServerStream.SendMsg(m) } +func _CommitService_ListCommits_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CommitServiceServer).ListCommits(&commitServiceListCommitsServer{stream}) +} + +type CommitService_ListCommitsServer interface { + Send(*ListCommitsResponse) error + Recv() (*ListCommitsRequest, error) + grpc.ServerStream +} + +type commitServiceListCommitsServer struct { + grpc.ServerStream +} + +func (x *commitServiceListCommitsServer) Send(m *ListCommitsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *commitServiceListCommitsServer) Recv() (*ListCommitsRequest, error) { + m := new(ListCommitsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func _CommitService_FindCommits_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(FindCommitsRequest) if err := stream.RecvMsg(m); err != nil { @@ -3581,6 +3864,12 @@ var _CommitService_serviceDesc = grpc.ServiceDesc{ Handler: _CommitService_FindAllCommits_Handler, ServerStreams: true, }, + { + StreamName: "ListCommits", + Handler: _CommitService_ListCommits_Handler, + ServerStreams: true, + ClientStreams: true, + }, { StreamName: "FindCommits", Handler: _CommitService_FindCommits_Handler, @@ -3631,130 +3920,135 @@ var _CommitService_serviceDesc = grpc.ServiceDesc{ Metadata: "commit.proto", } -func init() { proto.RegisterFile("commit.proto", fileDescriptor_commit_da3ad637b9b57a6c) } - -var fileDescriptor_commit_da3ad637b9b57a6c = []byte{ - // 1942 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x5b, 0x6f, 0xdb, 0xc8, - 0x15, 0x5e, 0xea, 0xce, 0x23, 0xd5, 0x91, 0x27, 0x37, 0x9a, 0xb6, 0x63, 0x2f, 0x77, 0xb3, 0xf5, - 0x62, 0xbb, 0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, 0x48, 0xf2, 0xbc, 0xae, 0xaf, - 0x6b, 0x62, 0xd6, 0x4e, 0xe0, 0x6e, 0x4e, 0xc5, 0x80, 0x8c, 0x18, 0x00, 0x16, 0xd4, 0x2f, 0xfa, - 0x27, 0xd7, 0xf2, 0x64, 0x24, 0x0d, 0x60, 0x3d, 0x93, 0xb1, 0xe5, 0x75, 0x2f, 0xaa, 0x1d, 0xe4, - 0x75, 0x2f, 0x4c, 0xf7, 0x52, 0x46, 0xf7, 0xe0, 0x3b, 0xca, 0xed, 0x5a, 0x83, 0xce, 0xd0, 0x9b, - 0xee, 0xf3, 0xcf, 0x2f, 0x3d, 0x7f, 0xbc, 0xcf, 0xf7, 0xf8, 0x92, 0xbd, 0x52, 0xec, 0x8f, 0x3d, - 0x31, 0x9e, 0x0f, 0x06, 0x35, 0x46, 0xfa, 0xe9, 0xf7, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x13, - 0x62, 0x56, 0x47, 0x1d, 0x00, 0x00, +func init() { proto.RegisterFile("commit.proto", fileDescriptor_commit_6b2c13b0769e0a67) } + +var fileDescriptor_commit_6b2c13b0769e0a67 = []byte{ + // 2026 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0x4d, 0x6f, 0xdb, 0xc8, + 0x19, 0x0e, 0xf5, 0xcd, 0x57, 0x6a, 0x56, 0x9e, 0x24, 0x8e, 0x4c, 0xdb, 0xb1, 0xc3, 0xdd, 0x6c, + 0xbd, 0xd8, 0xae, 0x6c, 0xb8, 0x1f, 0x68, 0xd1, 0x02, 0x6d, 0xb4, 0x6b, 0x3b, 0x76, 0x93, 0x28, + 0x65, 0x0c, 0x2c, 0x76, 0x81, 0x42, 0xa5, 0xc4, 0x91, 0xc4, 0x86, 0x12, 0x15, 0x72, 0x64, 0x5b, + 0x3d, 0xf4, 0x5e, 0xa0, 0xe8, 0xa5, 0x87, 0xa2,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, 0x43, 0xed, 0x62, 0xe2, 0x5b, 0x44, 0x59, 0xcb, 0x2b, + 0x7b, 0x16, 0x30, 0x14, 0xda, 0x46, 0x3f, 0x83, 0xb2, 0xeb, 0xd1, 0x93, 0x52, 0x66, 0x40, 0xf8, + 0x71, 0x60, 0x3b, 0xd3, 0xdd, 0x76, 0x97, 0x4e, 0x35, 0xf8, 0x0a, 0xfd, 0x11, 0x94, 0x59, 0x9f, + 0x62, 0xd6, 0xf3, 0xee, 0xf3, 0x03, 0x81, 0x5e, 0xdd, 0x17, 0x5d, 0xce, 0x60, 0xbe, 0x7a, 0x7c, + 0x7a, 0xd0, 0x2c, 0x50, 0x7c, 0x48, 0x2a, 0xbb, 0x4e, 0x0e, 0xff, 0x5f, 0x88, 0x5e, 0x96, 0xa5, + 0x25, 0x30, 0x64, 0x94, 0x3c, 0x79, 0xbc, 0x83, 0x56, 0xa1, 0xe2, 0x0e, 0x87, 0x3e, 0x26, 0x22, + 0x77, 0xa2, 0x27, 0xb1, 0xa3, 0x1c, 0xc1, 0x0e, 0x3a, 0x7b, 0xe8, 0x3a, 0x8e, 0x7b, 0xce, 0x3e, + 0x09, 0x35, 0x43, 0xf4, 0xe8, 0x37, 0x8e, 0xe6, 0xbc, 0x37, 0xc1, 0xde, 0x08, 0xfb, 0x82, 0x13, + 0x00, 0x15, 0x3d, 0x63, 0x12, 0xf4, 0x10, 0x1a, 0x96, 0xed, 0x9b, 0x7d, 0x07, 0xf7, 0xce, 0x4d, + 0xe7, 0x55, 0xab, 0xc6, 0x66, 0xd4, 0x85, 0xec, 0x6b, 0xd3, 0x79, 0x25, 0x69, 0x8e, 0xfa, 0xee, + 0x34, 0x07, 0xde, 0x9a, 0xe6, 0x08, 0xd6, 0x52, 0x97, 0xac, 0xa5, 0x03, 0x77, 0x62, 0xd9, 0xbf, + 0xce, 0x16, 0x8e, 0x03, 0x46, 0xf9, 0xd4, 0x9c, 0x8e, 0xe6, 0xe6, 0x68, 0x79, 0x40, 0xff, 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24, 0x6b, 0x33, 0xd2, 0x40, 0x4e, 0x59, 0x48, 0x1a, 0xc8, + 0x2b, 0xeb, 0x44, 0x0c, 0x2c, 0xa0, 0x95, 0xc7, 0x89, 0xd0, 0xf7, 0xe5, 0xf1, 0xbb, 0x94, 0xa0, + 0x69, 0x3b, 0x57, 0x4f, 0xcc, 0xb8, 0x08, 0xaf, 0x61, 0x35, 0x9b, 0xe4, 0xc8, 0xfd, 0xba, 0x94, + 0x76, 0xc9, 0xfd, 0xba, 0x9c, 0x2b, 0x45, 0xa2, 0x1d, 0xc3, 0x9d, 0x0c, 0x16, 0x82, 0xf4, 0x08, + 0xa8, 0xe6, 0x70, 0x22, 0xed, 0xe3, 0x4b, 0xe7, 0xa4, 0x2c, 0xf5, 0x61, 0x25, 0xc5, 0x02, 0xe4, + 0x71, 0xcf, 0xe3, 0x23, 0xf2, 0xb8, 0xe7, 0x52, 0x08, 0x69, 0xa3, 0xb3, 0xf7, 0x2d, 0x9d, 0xed, + 0x98, 0xfd, 0xf6, 0xc0, 0x9d, 0xec, 0xf2, 0xe6, 0x17, 0xae, 0x37, 0xda, 0xe5, 0x3a, 0xbe, 0x60, + 0x95, 0x8f, 0xdd, 0x91, 0x2b, 0xfa, 0xb3, 0x7e, 0xbf, 0xc2, 0x44, 0x3f, 0xfc, 0x2e, 0x00, 0x00, + 0xff, 0xff, 0x28, 0x6c, 0xb1, 0x4b, 0x98, 0x1e, 0x00, 0x00, } diff --git a/ruby/lib/gitaly/commit_pb.rb b/ruby/lib/gitaly/commit_pb.rb index 2a7e6c92..765337f7 100644 --- a/ruby/lib/gitaly/commit_pb.rb +++ b/ruby/lib/gitaly/commit_pb.rb @@ -109,6 +109,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do add_message "gitaly.FindCommitResponse" do optional :commit, :message, 1, "gitaly.GitCommit" end + add_message "gitaly.ListCommitsRequest" do + oneof :payload do + optional :header, :message, 1, "gitaly.ListCommitsRequest.Header" + optional :revision, :bytes, 2 + end + end + add_message "gitaly.ListCommitsRequest.Header" do + optional :repository, :message, 1, "gitaly.Repository" + end + add_message "gitaly.ListCommitsResponse" do + optional :commit, :message, 1, "gitaly.GitCommit" + end add_message "gitaly.ListCommitsByOidRequest" do optional :repository, :message, 1, "gitaly.Repository" repeated :oid, :string, 2 @@ -257,6 +269,9 @@ module Gitaly ListFilesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListFilesResponse").msgclass FindCommitRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindCommitRequest").msgclass FindCommitResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindCommitResponse").msgclass + ListCommitsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsRequest").msgclass + ListCommitsRequest::Header = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsRequest.Header").msgclass + ListCommitsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsResponse").msgclass ListCommitsByOidRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsByOidRequest").msgclass ListCommitsByOidResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsByOidResponse").msgclass FindAllCommitsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllCommitsRequest").msgclass diff --git a/ruby/lib/gitaly/commit_services_pb.rb b/ruby/lib/gitaly/commit_services_pb.rb index 50b59e33..21151b81 100644 --- a/ruby/lib/gitaly/commit_services_pb.rb +++ b/ruby/lib/gitaly/commit_services_pb.rb @@ -25,6 +25,9 @@ module Gitaly rpc :CommitStats, CommitStatsRequest, CommitStatsResponse # Use a stream to paginate the result set rpc :FindAllCommits, FindAllCommitsRequest, stream(FindAllCommitsResponse) + # ListCommits is a bidirectional stream where the server opens one git process and as such the + # start up costs are armortized. + rpc :ListCommits, stream(ListCommitsRequest), stream(ListCommitsResponse) rpc :FindCommits, FindCommitsRequest, stream(FindCommitsResponse) rpc :CommitLanguages, CommitLanguagesRequest, CommitLanguagesResponse rpc :RawBlame, RawBlameRequest, stream(RawBlameResponse) -- GitLab