blob: 50c8ccdc59a0bf8923cd199831662215edcedbad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
syntax = "proto3";
package gitaly;
option go_package = "gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb";
// LogEntry is a single entry in a repository's write-ahead log.
//
// Schema for :
// - `repository/<repository_id>/log/entry/<log_index>`.
message LogEntry {
// ReferenceUpdate models a single reference update.
message ReferenceUpdate {
// reference_name is the fully qualified name of the reference
// to update.
bytes reference_name = 1;
// new_oid is the new oid to point the reference to. Deletions
// are denoted as the SHA1 or SHA256 zero OID depending on the
// hash type used in the repository.
bytes new_oid = 2;
}
// DefaultBranchUpdate models a default branch update.
message DefaultBranchUpdate {
// reference_name is the fully qualified name of the reference
// to update the default branch to.
bytes reference_name = 1;
}
// CustomHooksUpdate models an update to the custom hooks.
message CustomHooksUpdate {
// custom_hooks_tar is a TAR that contains the custom hooks in
// `custom_hooks` directory. The contents of the directory are
// unpacked as the custom hooks.
bytes custom_hooks_tar = 1;
}
// reference_updates contains the reference updates this log
// entry records. The logged reference updates have already passed
// through verification and are applied without any further checks.
repeated ReferenceUpdate reference_updates = 1;
// default_branch_update contains the information pertaining to updating
// the default branch of the repo.
DefaultBranchUpdate default_branch_update = 2;
// CustomHooksUpdate contains the custom hooks to set in the repository.
CustomHooksUpdate custom_hooks_update = 3;
}
// LogIndex serializes a log index. It's used for storing a repository's
// applied log index in the database.
//
// Schema for:
// - `repository/<repository_id>/log/index/applied`
message LogIndex {
// log_index is an index pointing to a position in the log.
uint64 log_index = 1;
}
|