@@ -17,65 +17,65 @@ option (gogoproto.sizer_all) = true;
17
17
// +++ newname 2009-10-11 15:12:30.000000000 -0700
18
18
message FileDiff {
19
19
// the original name of the file
20
- string orig_name = 1 ;
20
+ string OrigName = 1 ;
21
21
22
22
// the original timestamp (nil if not present)
23
- pbtypes.Timestamp orig_time = 2 ;
23
+ pbtypes.Timestamp OrigTime = 2 ;
24
24
25
25
// the new name of the file (often same as OrigName)
26
- string new_name = 3 ;
26
+ string NewName = 3 ;
27
27
28
28
// the new timestamp (nil if not present)
29
- pbtypes.Timestamp new_time = 4 ;
29
+ pbtypes.Timestamp NewTime = 4 ;
30
30
31
31
// extended header lines (e.g., git's "new mode <mode>", "rename from <path>", etc.)
32
- repeated string extended = 5 ;
32
+ repeated string Extended = 5 ;
33
33
34
34
// hunks that were changed from orig to new
35
- repeated Hunk hunks = 6 ;
35
+ repeated Hunk Hunks = 6 ;
36
36
}
37
37
38
38
39
39
// A Hunk represents a series of changes (additions or deletions) in a file's
40
40
// unified diff.
41
41
message Hunk {
42
42
// starting line number in original file
43
- int32 orig_start_line = 1 ;
43
+ int32 OrigStartLine = 1 ;
44
44
45
45
// number of lines the hunk applies to in the original file
46
- int32 orig_lines = 2 ;
46
+ int32 OrigLines = 2 ;
47
47
48
48
// if > 0, then the original file had a 'No newline at end of file' mark at this offset
49
- int32 orig_no_newline_at = 3 ;
49
+ int32 OrigNoNewlineAt = 3 ;
50
50
51
51
// starting line number in new file
52
- int32 new_start_line = 4 ;
52
+ int32 NewStartLine = 4 ;
53
53
54
54
// number of lines the hunk applies to in the new file
55
- int32 new_lines = 5 ;
55
+ int32 NewLines = 5 ;
56
56
57
57
// optional section heading
58
- string section = 6 ;
58
+ string Section = 6 ;
59
59
60
60
// 0-indexed line offset in unified file diff (including section headers); this is
61
61
// only set when Hunks are read from entire file diff (i.e., when ReadAllHunks is
62
62
// called) This accounts for hunk headers, too, so the StartPosition of the first
63
63
// hunk will be 1.
64
- int32 start_position = 7 ;
64
+ int32 StartPosition = 7 ;
65
65
66
66
// hunk body (lines prefixed with '-', '+', or ' ')
67
- bytes body = 8 ;
67
+ bytes Body = 8 ;
68
68
}
69
69
70
70
// A Stat is a diff stat that represents the number of lines added/changed/deleted.
71
71
message Stat {
72
72
// number of lines added
73
- int32 added = 1 [(gogoproto.jsontag ) = "" ];
73
+ int32 Added = 1 [(gogoproto.jsontag ) = "" ];
74
74
75
75
// number of lines changed
76
- int32 changed = 2 [(gogoproto.jsontag ) = "" ];
76
+ int32 Changed = 2 [(gogoproto.jsontag ) = "" ];
77
77
78
78
// number of lines deleted
79
- int32 deleted = 3 [(gogoproto.jsontag ) = "" ];
79
+ int32 Deleted = 3 [(gogoproto.jsontag ) = "" ];
80
80
}
81
81
0 commit comments