@@ -35,19 +35,19 @@ message FileDiff {
35
35
// unified diff.
36
36
message Hunk {
37
37
// starting line number in original file
38
- int32 orig_start_line = 1 [ (gogoproto .customtype ) = "int" ] ;
38
+ int32 orig_start_line = 1 ;
39
39
40
40
// number of lines the hunk applies to in the original file
41
- int32 orig_lines = 2 [ (gogoproto .customtype ) = "int" ] ;
41
+ int32 orig_lines = 2 ;
42
42
43
43
// if > 0, then the original file had a 'No newline at end of file' mark at this offset
44
- int32 orig_no_newline_at = 3 [ (gogoproto .customtype ) = "int" ] ;
44
+ int32 orig_no_newline_at = 3 ;
45
45
46
46
// starting line number in new file
47
- int32 new_start_line = 4 [ (gogoproto .customtype ) = "int" ] ;
47
+ int32 new_start_line = 4 ;
48
48
49
49
// number of lines the hunk applies to in the new file
50
- int32 new_lines = 5 [ (gogoproto .customtype ) = "int" ] ;
50
+ int32 new_lines = 5 ;
51
51
52
52
// optional section heading
53
53
string section = 6 ;
@@ -56,7 +56,7 @@ message Hunk {
56
56
// only set when Hunks are read from entire file diff (i.e., when ReadAllHunks is
57
57
// called) This accounts for hunk headers, too, so the StartPosition of the first
58
58
// hunk will be 1.
59
- int32 start_position = 7 [ (gogoproto .customtype ) = "int" ] ;
59
+ int32 start_position = 7 ;
60
60
61
61
// hunk body (lines prefixed with '-', '+', or ' ')
62
62
bytes body = 8 ;
@@ -65,12 +65,12 @@ message Hunk {
65
65
// A Stat is a diff stat that represents the number of lines added/changed/deleted.
66
66
message Stat {
67
67
// number of lines added
68
- int32 added = 1 [ (gogoproto .customtype ) = "int" ] ;
68
+ int32 added = 1 ;
69
69
70
70
// number of lines changed
71
- int32 changed = 2 [ (gogoproto .customtype ) = "int" ] ;
71
+ int32 changed = 2 ;
72
72
73
73
// number of lines deleted
74
- int32 deleted = 3 [ (gogoproto .customtype ) = "int" ] ;
74
+ int32 deleted = 3 ;
75
75
}
76
76
0 commit comments