Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ref.proto')
-rw-r--r--proto/ref.proto60
1 files changed, 20 insertions, 40 deletions
diff --git a/proto/ref.proto b/proto/ref.proto
index 886881840..bdca76015 100644
--- a/proto/ref.proto
+++ b/proto/ref.proto
@@ -12,108 +12,91 @@ service RefService {
rpc FindDefaultBranchName(FindDefaultBranchNameRequest) returns (FindDefaultBranchNameResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc FindAllBranchNames(FindAllBranchNamesRequest) returns (stream FindAllBranchNamesResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc FindAllTagNames(FindAllTagNamesRequest) returns (stream FindAllTagNamesResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
// Find a Ref matching the given constraints. Response may be empty.
rpc FindRefName(FindRefNameRequest) returns (FindRefNameResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
// Return a stream so we can divide the response in chunks of branches
rpc FindLocalBranches(FindLocalBranchesRequest) returns (stream FindLocalBranchesResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc FindAllBranches(FindAllBranchesRequest) returns (stream FindAllBranchesResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc FindAllTags(FindAllTagsRequest) returns (stream FindAllTagsResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc FindTag(FindTagRequest) returns (FindTagResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc FindAllRemoteBranches(FindAllRemoteBranchesRequest) returns (stream FindAllRemoteBranchesResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc RefExists(RefExistsRequest) returns (RefExistsResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc CreateBranch(CreateBranchRequest) returns (CreateBranchResponse) {
option (op_type) = {
op: MUTATOR
- target_repository_field: "1"
};
}
rpc DeleteBranch(DeleteBranchRequest) returns (DeleteBranchResponse) {
option (op_type) = {
op: MUTATOR
- target_repository_field: "1"
};
}
rpc FindBranch(FindBranchRequest) returns (FindBranchResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc DeleteRefs(DeleteRefsRequest) returns (DeleteRefsResponse) {
option (op_type) = {
op: MUTATOR
- target_repository_field: "1"
};
}
rpc ListBranchNamesContainingCommit(ListBranchNamesContainingCommitRequest) returns (stream ListBranchNamesContainingCommitResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc ListTagNamesContainingCommit(ListTagNamesContainingCommitRequest) returns (stream ListTagNamesContainingCommitResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc GetTagMessages(GetTagMessagesRequest) returns (stream GetTagMessagesResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
@@ -121,26 +104,23 @@ service RefService {
rpc ListNewCommits(ListNewCommitsRequest) returns (stream ListNewCommitsResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc ListNewBlobs(ListNewBlobsRequest) returns (stream ListNewBlobsResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
rpc PackRefs(PackRefsRequest) returns (PackRefsResponse) {
option (op_type) = {
op: MUTATOR
- target_repository_field: "1"
};
}
}
message ListNewBlobsRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
string commit_id = 2;
// Limit the number of revs to be returned fro mgit-rev-list
// If the limit is set to zero, all items will be returned
@@ -152,7 +132,7 @@ message ListNewBlobsResponse {
}
message FindDefaultBranchNameRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
}
message FindDefaultBranchNameResponse {
@@ -160,7 +140,7 @@ message FindDefaultBranchNameResponse {
}
message FindAllBranchNamesRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
}
message FindAllBranchNamesResponse {
@@ -168,7 +148,7 @@ message FindAllBranchNamesResponse {
}
message FindAllTagNamesRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
}
message FindAllTagNamesResponse {
@@ -176,7 +156,7 @@ message FindAllTagNamesResponse {
}
message FindRefNameRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
// Require that the resulting ref contains this commit as an ancestor
string commit_id = 2;
// Example prefix: "refs/heads/". Type bytes because that is the type of ref names.
@@ -189,7 +169,7 @@ message FindRefNameResponse {
}
message FindLocalBranchesRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
enum SortBy {
NAME = 0;
UPDATED_ASC = 1;
@@ -218,7 +198,7 @@ message FindLocalBranchCommitAuthor {
}
message FindAllBranchesRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
// Only return branches that are merged into root ref
bool merged_only = 2;
// If merged_only is true, this is a list of branches from which we
@@ -235,7 +215,7 @@ message FindAllBranchesResponse {
}
message FindTagRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
bytes tag_name = 2;
}
@@ -244,7 +224,7 @@ message FindTagResponse {
}
message FindAllTagsRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
}
message FindAllTagsResponse {
@@ -252,7 +232,7 @@ message FindAllTagsResponse {
}
message RefExistsRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
// Any ref, e.g. 'refs/heads/master' or 'refs/tags/v1.0.1'. Must start with 'refs/'.
bytes ref = 2;
}
@@ -262,7 +242,7 @@ message RefExistsResponse {
}
message CreateBranchRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
bytes name = 2;
bytes start_point = 3;
}
@@ -279,7 +259,7 @@ message CreateBranchResponse {
}
message DeleteBranchRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
bytes name = 2;
}
@@ -287,7 +267,7 @@ message DeleteBranchRequest {
message DeleteBranchResponse {}
message FindBranchRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
// Name can be 'master' but also 'refs/heads/master'
bytes name = 2;
}
@@ -297,7 +277,7 @@ message FindBranchResponse {
}
message DeleteRefsRequest{
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
// The following two fields are mutually exclusive
repeated bytes except_with_prefix = 2;
repeated bytes refs = 3;
@@ -308,7 +288,7 @@ message DeleteRefsResponse {
}
message ListBranchNamesContainingCommitRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
string commit_id = 2;
// Limit the number of tag names to be returned
@@ -322,7 +302,7 @@ message ListBranchNamesContainingCommitResponse {
}
message ListTagNamesContainingCommitRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
string commit_id = 2;
// Limit the number of tag names to be returned
@@ -339,7 +319,7 @@ message GetTagMessagesRequest {
reserved 2;
reserved "tag_names";
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
repeated string tag_ids = 3;
}
@@ -353,7 +333,7 @@ message GetTagMessagesResponse {
}
message ListNewCommitsRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
string commit_id = 2;
}
@@ -362,7 +342,7 @@ message ListNewCommitsResponse {
}
message FindAllRemoteBranchesRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
string remote_name = 2;
}
@@ -371,7 +351,7 @@ message FindAllRemoteBranchesResponse {
}
message PackRefsRequest {
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
bool all_refs = 2;
}