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:
authorMateusz Nowotyński <maxmati4@gmail.com>2019-11-29 02:24:46 +0300
committerjramsay <maxmati4@gmail.com>2020-02-06 22:29:01 +0300
commiteef10e2217463c7c3582604ebdebae36679e43f4 (patch)
tree8781b89a8c0320449d17871fc0112364171e25f7 /proto/ssh.proto
parentfc5321467ae7f2a9d39e81f3f700495292fd785e (diff)
Use field annotation for target and additional repository
Instead of setting OID in the RPC method use annotation in the field (`target_repository` and `additional_repository`). Having only this 2 annotations created a problem with messages that can be either target or additional repository (for example `ObjectPool`). Those are marked with `repository` annotation and `target_repository` and `additional_repository` are used in the parent messages. Signed-off-by: Mateusz Nowotyński <maxmati4@gmail.com> Signed-off-by: jramsay <maxmati4@gmail.com>
Diffstat (limited to 'proto/ssh.proto')
-rw-r--r--proto/ssh.proto9
1 files changed, 3 insertions, 6 deletions
diff --git a/proto/ssh.proto b/proto/ssh.proto
index e2185bffa..b7a6a33c7 100644
--- a/proto/ssh.proto
+++ b/proto/ssh.proto
@@ -11,7 +11,6 @@ service SSHService {
rpc SSHUploadPack(stream SSHUploadPackRequest) returns (stream SSHUploadPackResponse) {
option (op_type) = {
op: ACCESSOR
- target_repository_field: "1"
};
}
@@ -19,7 +18,6 @@ service SSHService {
rpc SSHReceivePack(stream SSHReceivePackRequest) returns (stream SSHReceivePackResponse) {
option (op_type) = {
op: MUTATOR
- target_repository_field: "1"
};
}
@@ -27,14 +25,13 @@ service SSHService {
rpc SSHUploadArchive(stream SSHUploadArchiveRequest) returns (stream SSHUploadArchiveResponse) {
option (op_type) = {
op: MUTATOR
- target_repository_field: "1"
};
}
}
message SSHUploadPackRequest {
// 'repository' must be present in the first message.
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
// A chunk of raw data to be copied to 'git upload-pack' standard input
bytes stdin = 2;
// Prevent re-use of field id 3 and/or the "git_config_parameters" name
@@ -59,7 +56,7 @@ message SSHUploadPackResponse {
message SSHReceivePackRequest {
// 'repository' must be present in the first message.
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
// A chunk of raw data to be copied to 'git upload-pack' standard input
bytes stdin = 2;
// Contents of GL_ID, GL_REPOSITORY, and GL_USERNAME environment variables
@@ -87,7 +84,7 @@ message SSHReceivePackResponse {
message SSHUploadArchiveRequest {
// 'repository' must be present in the first message.
- Repository repository = 1;
+ Repository repository = 1 [(target_repository)=true];
// A chunk of raw data to be copied to 'git upload-archive' standard input
bytes stdin = 2;
}