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:
authorRoger Meier <r.meier@siemens.com>2019-12-02 22:28:40 +0300
committerJohn Cai <jcai@gitlab.com>2019-12-02 22:28:40 +0300
commitb3dbb922d2827d067d8e7c0f4e4e3cbf4f4d0a90 (patch)
tree2a1b632a6ab31d3487625bec804069369fbfaac7 /proto/shared.proto
parent712a6072e8b95f989f54ecfb37cd721f96711d12 (diff)
feat: add signature type to GitCommit
Diffstat (limited to 'proto/shared.proto')
-rw-r--r--proto/shared.proto9
1 files changed, 9 insertions, 0 deletions
diff --git a/proto/shared.proto b/proto/shared.proto
index ea8d79c8a..2d04c4dd3 100644
--- a/proto/shared.proto
+++ b/proto/shared.proto
@@ -53,6 +53,13 @@ enum ObjectType {
TAG = 4;
}
+enum SignatureType {
+ NONE = 0;
+ PGP = 1;
+ X509 = 2;
+ // maybe add X509+TSA or other combinations at a later step
+}
+
extend google.protobuf.MethodOptions {
// Random high number..
OperationMsg op_type = 82303;
@@ -101,6 +108,7 @@ message GitCommit {
// but its size will be set in body_size so we can know if
// a commit had a body in the first place.
int64 body_size = 7;
+ SignatureType signature_type = 8;
}
message CommitAuthor {
@@ -130,6 +138,7 @@ message Tag {
bytes message = 4;
int64 message_size = 5;
CommitAuthor tagger = 6;
+ SignatureType signature_type = 7;
}
message User {