Debian Codegraph @

lib/src/protos/simple_store.proto

raw
1 // Copyright 2020 The Jujutsu Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 syntax = "proto3";
16
17 package simple_store;
18
19 message TreeValue {
20 message File {
21 bytes id = 1;
22 bool executable = 2;
23 bytes copy_id = 3;
24 }
25
26 oneof value {
27 File file = 2;
28 bytes symlink_id = 3;
29 bytes tree_id = 4;
30 }
31 }
32
33 message Tree {
34 message Entry {
35 string name = 1;
36 TreeValue value = 2;
37 }
38
39 repeated Entry entries = 1;
40 }
41
42 message Commit {
43 repeated bytes parents = 1;
44 repeated bytes predecessors = 2;
45 // Alternating positive and negative terms
46 repeated bytes root_tree = 3;
47 // Labels for the terms of a conflict.
48 repeated string conflict_labels = 10;
49 bytes change_id = 4;
50 string description = 5;
51
52 message Timestamp {
53 int64 millis_since_epoch = 1;
54 int32 tz_offset = 2;
55 }
56 message Signature {
57 string name = 1;
58 string email = 2;
59 Timestamp timestamp = 3;
60 }
61 Signature author = 6;
62 Signature committer = 7;
63 optional bytes secure_sig = 9;
64 }