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:
authorJacob Vosmaer <jacob@gitlab.com>2021-08-12 13:52:22 +0300
committerJacob Vosmaer <jacob@gitlab.com>2021-08-24 12:31:26 +0300
commit8ced7fa57ffc19bc343a8e83b711297597b17e86 (patch)
treeee8e00315b105910f25aca01927b19c464784bab /proto/hook.proto
parentb78f644f35cf8513667b2f0d18a75809f00254f7 (diff)
Add proto definition for PackObjectsHookWithSidechannel
The implementation will follow in a later commit.
Diffstat (limited to 'proto/hook.proto')
-rw-r--r--proto/hook.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/proto/hook.proto b/proto/hook.proto
index 71dd75cd6..1c8a2001f 100644
--- a/proto/hook.proto
+++ b/proto/hook.proto
@@ -36,6 +36,13 @@ service HookService {
op: ACCESSOR
};
}
+ // PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
+ // a unix socket side channel.
+ rpc PackObjectsHookWithSidechannel(PackObjectsHookWithSidechannelRequest) returns (PackObjectsHookWithSidechannelResponse) {
+ option (op_type) = {
+ op: ACCESSOR
+ };
+ }
}
message PreReceiveHookRequest {
@@ -110,3 +117,11 @@ message PackObjectsHookResponse {
// stderr contains progress messages (such as "Enumerating objects ...")
bytes stderr = 2;
}
+
+message PackObjectsHookWithSidechannelRequest {
+ Repository repository = 1 [(target_repository)=true];
+ // args contains the arguments passed to the pack-objects hook, without the leading "git"
+ repeated string args = 2;
+}
+
+message PackObjectsHookWithSidechannelResponse {}