Skip to content

changed protobuf field names to camel case #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions diff/diff.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions diff/diff.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,65 +17,65 @@ option (gogoproto.sizer_all) = true;
// +++ newname 2009-10-11 15:12:30.000000000 -0700
message FileDiff {
// the original name of the file
string orig_name = 1;
string OrigName = 1;

// the original timestamp (nil if not present)
pbtypes.Timestamp orig_time = 2;
pbtypes.Timestamp OrigTime = 2;

// the new name of the file (often same as OrigName)
string new_name = 3;
string NewName = 3;

// the new timestamp (nil if not present)
pbtypes.Timestamp new_time = 4;
pbtypes.Timestamp NewTime = 4;

// extended header lines (e.g., git's "new mode <mode>", "rename from <path>", etc.)
repeated string extended = 5;
repeated string Extended = 5;

// hunks that were changed from orig to new
repeated Hunk hunks = 6;
repeated Hunk Hunks = 6;
}


// A Hunk represents a series of changes (additions or deletions) in a file's
// unified diff.
message Hunk {
// starting line number in original file
int32 orig_start_line = 1;
int32 OrigStartLine = 1;

// number of lines the hunk applies to in the original file
int32 orig_lines = 2;
int32 OrigLines = 2;

// if > 0, then the original file had a 'No newline at end of file' mark at this offset
int32 orig_no_newline_at = 3;
int32 OrigNoNewlineAt = 3;

// starting line number in new file
int32 new_start_line = 4;
int32 NewStartLine = 4;

// number of lines the hunk applies to in the new file
int32 new_lines = 5;
int32 NewLines = 5;

// optional section heading
string section = 6;
string Section = 6;

// 0-indexed line offset in unified file diff (including section headers); this is
// only set when Hunks are read from entire file diff (i.e., when ReadAllHunks is
// called) This accounts for hunk headers, too, so the StartPosition of the first
// hunk will be 1.
int32 start_position = 7;
int32 StartPosition = 7;

// hunk body (lines prefixed with '-', '+', or ' ')
bytes body = 8;
bytes Body = 8;
}

// A Stat is a diff stat that represents the number of lines added/changed/deleted.
message Stat {
// number of lines added
int32 added = 1 [(gogoproto.jsontag) = ""];
int32 Added = 1 [(gogoproto.jsontag) = ""];

// number of lines changed
int32 changed = 2 [(gogoproto.jsontag) = ""];
int32 Changed = 2 [(gogoproto.jsontag) = ""];

// number of lines deleted
int32 deleted = 3 [(gogoproto.jsontag) = ""];
int32 Deleted = 3 [(gogoproto.jsontag) = ""];
}