Last active
February 25, 2020 23:56
-
-
Save yangzh/57c08bc8bde18a32286024d112348bb0 to your computer and use it in GitHub Desktop.
typical diff example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'$ diff a.proto b.proto -y | |
syntax = "proto3"; syntax = "proto3"; | |
package some.package; package some.package; | |
option java_package = "some.package"; option java_package = "some.package"; | |
option go_package = "some/package"; option go_package = "some/package"; | |
message EchoRequest { message EchoRequest { | |
string user = 1; string user = 1; | |
// The greeting from user. // The greeting from user. | |
string greet = 2; string greet = 2; | |
} } | |
message EchoResponse { message EchoResponse { | |
// The greeting echo. // The greeting echo. | |
string echo = 1; string echo = 1; | |
> // Added later for addressing user. | |
> string user = 3; | |
> | |
// The timestamp for the echo. // The timestamp for the echo. | |
uint64 timestamp = 2; uint64 timestamp = 2; | |
} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment