mirror of
https://github.com/harness/drone.git
synced 2025-05-02 13:40:22 +00:00
27 lines
784 B
Protocol Buffer
27 lines
784 B
Protocol Buffer
syntax = "proto3";
|
|
package rpc;
|
|
|
|
option go_package = "github.com/harness/gitness/gitrpc/rpc";
|
|
|
|
import "shared.proto";
|
|
|
|
// DiffService is a service which provides RPCs to inspect differences
|
|
// introduced between a set of commits.
|
|
service DiffService {
|
|
rpc RawDiff(RawDiffRequest) returns (stream RawDiffResponse) {}
|
|
}
|
|
|
|
message RawDiffRequest {
|
|
ReadRequest base = 1;
|
|
// base_ref is left side of compare and can be branch, commit and tag
|
|
string base_ref = 2;
|
|
// head_ref is right side of compare and can be branch, commit and tag
|
|
string head_ref = 3;
|
|
// merge_base used only in branch comparison, if merge_base is true
|
|
// it will show diff from the commit where branch is created and head branch
|
|
bool merge_base = 4;
|
|
}
|
|
|
|
message RawDiffResponse {
|
|
bytes data = 1;
|
|
} |