Skip to content
Snippets Groups Projects
Commit 0636f76a authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Add ignore_whitespace_change field to CommitDiffRequest message

parent fcdb86aa
No related branches found
No related tags found
1 merge request!15Add some flags to CommitDiff
Loading
Loading
@@ -13,6 +13,7 @@ message CommitDiffRequest {
Repository repository = 1;
string left_commit_id = 2;
string right_commit_id = 3;
bool ignore_whitespace_change = 4;
}
 
// A CommitDiffResponse corresponds to a single changed file in a commit.
Loading
Loading
Loading
Loading
@@ -19,9 +19,10 @@ var _ = fmt.Errorf
var _ = math.Inf
 
type CommitDiffRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"`
IgnoreWhitespaceChange bool `protobuf:"varint,4,opt,name=ignore_whitespace_change,json=ignoreWhitespaceChange" json:"ignore_whitespace_change,omitempty"`
}
 
func (m *CommitDiffRequest) Reset() { *m = CommitDiffRequest{} }
Loading
Loading
@@ -50,6 +51,13 @@ func (m *CommitDiffRequest) GetRightCommitId() string {
return ""
}
 
func (m *CommitDiffRequest) GetIgnoreWhitespaceChange() bool {
if m != nil {
return m.IgnoreWhitespaceChange
}
return false
}
// A CommitDiffResponse corresponds to a single changed file in a commit.
type CommitDiffResponse struct {
FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"`
Loading
Loading
@@ -233,26 +241,28 @@ var _Diff_serviceDesc = grpc.ServiceDesc{
func init() { proto.RegisterFile("diff.proto", fileDescriptor1) }
 
var fileDescriptor1 = []byte{
// 328 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xdd, 0x4a, 0xf3, 0x30,
0x18, 0xc7, 0xdf, 0xec, 0xa3, 0xeb, 0x9e, 0xb7, 0x2a, 0x46, 0xd0, 0x6e, 0x22, 0x94, 0x21, 0xd2,
0xa3, 0x21, 0xf3, 0x12, 0x26, 0xc8, 0x0e, 0x44, 0xc9, 0x0d, 0x94, 0x6c, 0x49, 0xd7, 0x60, 0xdb,
0xa7, 0xa6, 0x19, 0x65, 0x17, 0xe2, 0x25, 0x7a, 0x1f, 0xd2, 0xc4, 0xcd, 0x82, 0x1e, 0xe6, 0xf7,
0xfb, 0x27, 0x79, 0x3e, 0x00, 0x84, 0x4a, 0xd3, 0x79, 0xa5, 0xd1, 0x20, 0xf5, 0xb6, 0xca, 0xf0,
0x7c, 0x3f, 0x0d, 0xea, 0x8c, 0x6b, 0x29, 0x1c, 0x9d, 0x7d, 0x10, 0x38, 0x5f, 0x62, 0x51, 0x28,
0xf3, 0xa8, 0xd2, 0x94, 0xc9, 0xf7, 0x9d, 0xac, 0x0d, 0x5d, 0x00, 0x68, 0x59, 0x61, 0xad, 0x0c,
0xea, 0x7d, 0x48, 0x22, 0x12, 0xff, 0x5f, 0xd0, 0xb9, 0x7b, 0x60, 0xce, 0x8e, 0x86, 0x75, 0x52,
0xf4, 0x16, 0x4e, 0x73, 0x99, 0x9a, 0x64, 0x63, 0x5f, 0x4b, 0x94, 0x08, 0x7b, 0x11, 0x89, 0xc7,
0x2c, 0x68, 0xa9, 0xfb, 0x62, 0x25, 0xe8, 0x1d, 0x9c, 0x69, 0xb5, 0xcd, 0xba, 0xb1, 0xbe, 0x8d,
0x9d, 0x58, 0x7c, 0xc8, 0xcd, 0x3e, 0x09, 0xd0, 0x6e, 0x5d, 0x75, 0x85, 0x65, 0x2d, 0xe9, 0x35,
0x8c, 0x53, 0x8d, 0x45, 0x52, 0x71, 0x93, 0xd9, 0xba, 0x02, 0xe6, 0xb7, 0xe0, 0x95, 0x9b, 0x8c,
0x5e, 0xc1, 0xc8, 0xa0, 0x53, 0x3d, 0xab, 0x3c, 0x83, 0x07, 0x61, 0x6f, 0x1d, 0x3f, 0xf3, 0xda,
0xe3, 0x4a, 0xd0, 0x0b, 0x18, 0x1a, 0x6c, 0xf1, 0xc0, 0xe2, 0x81, 0xc1, 0x95, 0xa0, 0x13, 0xf0,
0x31, 0x17, 0x49, 0x81, 0x42, 0x86, 0xc3, 0x88, 0xc4, 0x43, 0x36, 0xc2, 0x5c, 0x3c, 0xa3, 0x90,
0xad, 0x2a, 0x65, 0xe3, 0x94, 0xe7, 0x54, 0x29, 0x1b, 0xab, 0x2e, 0xc1, 0x5b, 0xab, 0x92, 0xeb,
0x7d, 0x38, 0x8a, 0x48, 0xec, 0xb3, 0xef, 0x13, 0xbd, 0x01, 0xd0, 0xbc, 0x49, 0x36, 0xd9, 0xae,
0x7c, 0xab, 0x43, 0x3f, 0xea, 0xc7, 0x01, 0x1b, 0x6b, 0xde, 0x2c, 0x2d, 0x58, 0xbc, 0xc0, 0xa0,
0x6d, 0x90, 0x3e, 0x01, 0xfc, 0xb4, 0x4b, 0x27, 0x87, 0x59, 0xff, 0x5a, 0xcd, 0x74, 0xfa, 0x97,
0x72, 0xd3, 0x99, 0xfd, 0xbb, 0x27, 0x6b, 0xcf, 0xee, 0xf5, 0xe1, 0x2b, 0x00, 0x00, 0xff, 0xff,
0xca, 0xe9, 0x71, 0x86, 0xfb, 0x01, 0x00, 0x00,
// 363 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x41, 0x8b, 0x9b, 0x40,
0x14, 0xc7, 0x3b, 0x89, 0x31, 0xe6, 0xd5, 0xb6, 0x74, 0x0a, 0xa9,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, 0x8b, 0x5c, 0x63, 0x9d, 0xb6, 0xdc, 0x94, 0xb6, 0x51, 0xc8, 0x82, 0x01,
0xfc, 0xe7, 0xa6, 0xa4, 0x9f, 0x61, 0x6e, 0xd0, 0xa9, 0x89, 0x55, 0xbe, 0xc1, 0x8b, 0xb0, 0x4f,
0x8d, 0x9f, 0xe9, 0x0f, 0xc7, 0x83, 0xa0, 0x9f, 0x60, 0x66, 0x70, 0xc0, 0x9e, 0xc5, 0x9e, 0xc1,
0x83, 0xa0, 0x2b, 0x08, 0xb0, 0x12, 0x69, 0x8d, 0x42, 0x46, 0xb3, 0x98, 0x24, 0x33, 0x36, 0xc7,
0x4a, 0xfc, 0x45, 0x21, 0x07, 0xd5, 0xc8, 0xde, 0x29, 0xdf, 0xa9, 0x46, 0xf6, 0x56, 0x2d, 0xc1,
0x3f, 0xaa, 0x86, 0xeb, 0x73, 0x34, 0xb7, 0xc5, 0x9e, 0x4e, 0xf4, 0x2b, 0x80, 0xe6, 0x7d, 0x9a,
0x95, 0xa7, 0xe6, 0xb6, 0x8b, 0x82, 0x78, 0x9a, 0x84, 0x6c, 0xa1, 0x79, 0xbf, 0xb7, 0x60, 0xf7,
0x0f, 0xbc, 0xa1, 0x20, 0xfd, 0x03, 0xf0, 0x5c, 0x97, 0xae, 0x2e, 0x5b, 0x7a, 0xb1, 0xd4, 0xf5,
0xfa, 0x35, 0xe5, 0xfe, 0xce, 0xe6, 0xcd, 0x0f, 0x72, 0xf4, 0xed, 0x8d, 0xf8, 0xf9, 0x18, 0x00,
0x00, 0xff, 0xff, 0xf7, 0xf0, 0x81, 0xc5, 0x35, 0x02, 0x00, 0x00,
}
Loading
Loading
@@ -9,6 +9,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :repository, :message, 1, "gitaly.Repository"
optional :left_commit_id, :string, 2
optional :right_commit_id, :string, 3
optional :ignore_whitespace_change, :bool, 4
end
add_message "gitaly.CommitDiffResponse" do
optional :from_path, :bytes, 1
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment