drone/gitrpc/proto/diff.proto
2023-01-17 12:36:57 +01:00

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;
}