types.pb.go RawHistoryFolder

1// SPDX-License-Identifier: MIT
2
3// Code generated by protoc-gen-go. DO NOT EDIT.
4// versions:
5// 	protoc-gen-go v1.36.12
6// 	protoc        (unknown)
7// source: ermite/types.proto
8
9package ermite
10
11import (
12	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
15	reflect "reflect"
16	sync "sync"
17	unsafe "unsafe"
18)
19
20const (
21	// Verify that this generated code is sufficiently up-to-date.
22	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23	// Verify that runtime/protoimpl is sufficiently up-to-date.
24	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25)
26
27// MergeMode is how a merge request is merged. Both modes need the target to
28// be an ancestor of the head: a branch behind its target is rebased by its
29// author and pushed again, the server never rebases nor creates merge commits.
30type MergeMode int32
31
32const (
33	// Not set. In MergeMergeRequestRequest.mode it means fast-forward. Rejected
34	// in RepoSettings.allowed_merge_modes. Returned on a merge request that was
35	// not merged.
36	MergeMode_MERGE_MODE_UNSPECIFIED MergeMode = 0
37	// The target branch moves to the head. No commit is created and the
38	// signatures of the branch's commits are kept.
39	MergeMode_MERGE_MODE_FAST_FORWARD MergeMode = 1
40	// One new commit is created with the tree of the head and the target as
41	// only parent, signed by the server's key (see ServerService.GetSigningKey).
42	// Its author is the author of the first commit of the branch, the other
43	// authors are added as "Co-authored-by:" trailers, and its message is the
44	// title, " (!<number>)", a blank line and the list of the squashed commits'
45	// summaries.
46	MergeMode_MERGE_MODE_SQUASH MergeMode = 2
47)
48
49// Enum value maps for MergeMode.
50var (
51	MergeMode_name = map[int32]string{
52		0: "MERGE_MODE_UNSPECIFIED",
53		1: "MERGE_MODE_FAST_FORWARD",
54		2: "MERGE_MODE_SQUASH",
55	}
56	MergeMode_value = map[string]int32{
57		"MERGE_MODE_UNSPECIFIED":  0,
58		"MERGE_MODE_FAST_FORWARD": 1,
59		"MERGE_MODE_SQUASH":       2,
60	}
61)
62
63func (x MergeMode) Enum() *MergeMode {
64	p := new(MergeMode)
65	*p = x
66	return p
67}
68
69func (x MergeMode) String() string {
70	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
71}
72
73func (MergeMode) Descriptor() protoreflect.EnumDescriptor {
74	return file_ermite_types_proto_enumTypes[0].Descriptor()
75}
76
77func (MergeMode) Type() protoreflect.EnumType {
78	return &file_ermite_types_proto_enumTypes[0]
79}
80
81func (x MergeMode) Number() protoreflect.EnumNumber {
82	return protoreflect.EnumNumber(x)
83}
84
85// Deprecated: Use MergeMode.Descriptor instead.
86func (MergeMode) EnumDescriptor() ([]byte, []int) {
87	return file_ermite_types_proto_rawDescGZIP(), []int{0}
88}
89
90// Signature identifies who did something in Git and when: the author or the
91// committer of a commit.
92type Signature struct {
93	state protoimpl.MessageState `protogen:"open.v1"`
94	// Name is the person's name as recorded in the commit.
95	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
96	// Email is the person's email address as recorded in the commit.
97	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
98	// Time is when the action happened. The time zone offset of the commit is
99	// not kept.
100	Time          *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
101	unknownFields protoimpl.UnknownFields
102	sizeCache     protoimpl.SizeCache
103}
104
105func (x *Signature) Reset() {
106	*x = Signature{}
107	mi := &file_ermite_types_proto_msgTypes[0]
108	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109	ms.StoreMessageInfo(mi)
110}
111
112func (x *Signature) String() string {
113	return protoimpl.X.MessageStringOf(x)
114}
115
116func (*Signature) ProtoMessage() {}
117
118func (x *Signature) ProtoReflect() protoreflect.Message {
119	mi := &file_ermite_types_proto_msgTypes[0]
120	if x != nil {
121		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122		if ms.LoadMessageInfo() == nil {
123			ms.StoreMessageInfo(mi)
124		}
125		return ms
126	}
127	return mi.MessageOf(x)
128}
129
130// Deprecated: Use Signature.ProtoReflect.Descriptor instead.
131func (*Signature) Descriptor() ([]byte, []int) {
132	return file_ermite_types_proto_rawDescGZIP(), []int{0}
133}
134
135func (x *Signature) GetName() string {
136	if x != nil {
137		return x.Name
138	}
139	return ""
140}
141
142func (x *Signature) GetEmail() string {
143	if x != nil {
144		return x.Email
145	}
146	return ""
147}
148
149func (x *Signature) GetTime() *timestamppb.Timestamp {
150	if x != nil {
151		return x.Time
152	}
153	return nil
154}
155
156// Commit is the metadata of one Git commit.
157type Commit struct {
158	state protoimpl.MessageState `protogen:"open.v1"`
159	// Id is the full object id (40 lowercase hexadecimal characters for SHA-1).
160	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
161	// ParentIds are the ids of the parent commits, first parent first. Empty for
162	// a root commit.
163	ParentIds []string `protobuf:"bytes,2,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
164	// Author is who wrote the change.
165	Author *Signature `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
166	// Committer is who recorded the commit.
167	Committer *Signature `protobuf:"bytes,4,opt,name=committer,proto3" json:"committer,omitempty"`
168	// Summary is the first line of the message, without the line break.
169	Summary string `protobuf:"bytes,5,opt,name=summary,proto3" json:"summary,omitempty"`
170	// Message is the full commit message, including the summary. Text that is
171	// not valid UTF-8 is converted with the replacement character.
172	Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
173	// Verification tells whether and how the commit is signed. Unset on
174	// servers without the "commit_signatures" feature.
175	Verification  *CommitVerification `protobuf:"bytes,7,opt,name=verification,proto3" json:"verification,omitempty"`
176	unknownFields protoimpl.UnknownFields
177	sizeCache     protoimpl.SizeCache
178}
179
180func (x *Commit) Reset() {
181	*x = Commit{}
182	mi := &file_ermite_types_proto_msgTypes[1]
183	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
184	ms.StoreMessageInfo(mi)
185}
186
187func (x *Commit) String() string {
188	return protoimpl.X.MessageStringOf(x)
189}
190
191func (*Commit) ProtoMessage() {}
192
193func (x *Commit) ProtoReflect() protoreflect.Message {
194	mi := &file_ermite_types_proto_msgTypes[1]
195	if x != nil {
196		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
197		if ms.LoadMessageInfo() == nil {
198			ms.StoreMessageInfo(mi)
199		}
200		return ms
201	}
202	return mi.MessageOf(x)
203}
204
205// Deprecated: Use Commit.ProtoReflect.Descriptor instead.
206func (*Commit) Descriptor() ([]byte, []int) {
207	return file_ermite_types_proto_rawDescGZIP(), []int{1}
208}
209
210func (x *Commit) GetId() string {
211	if x != nil {
212		return x.Id
213	}
214	return ""
215}
216
217func (x *Commit) GetParentIds() []string {
218	if x != nil {
219		return x.ParentIds
220	}
221	return nil
222}
223
224func (x *Commit) GetAuthor() *Signature {
225	if x != nil {
226		return x.Author
227	}
228	return nil
229}
230
231func (x *Commit) GetCommitter() *Signature {
232	if x != nil {
233		return x.Committer
234	}
235	return nil
236}
237
238func (x *Commit) GetSummary() string {
239	if x != nil {
240		return x.Summary
241	}
242	return ""
243}
244
245func (x *Commit) GetMessage() string {
246	if x != nil {
247		return x.Message
248	}
249	return ""
250}
251
252func (x *Commit) GetVerification() *CommitVerification {
253	if x != nil {
254		return x.Verification
255	}
256	return nil
257}
258
259var File_ermite_types_proto protoreflect.FileDescriptor
260
261const file_ermite_types_proto_rawDesc = "" +
262	"\n" +
263	"\x12ermite/types.proto\x12\x06ermite\x1a\x16ermite/signature.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"e\n" +
264	"\tSignature\x12\x12\n" +
265	"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
266	"\x05email\x18\x02 \x01(\tR\x05email\x12.\n" +
267	"\x04time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\"\x87\x02\n" +
268	"\x06Commit\x12\x0e\n" +
269	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
270	"\n" +
271	"parent_ids\x18\x02 \x03(\tR\tparentIds\x12)\n" +
272	"\x06author\x18\x03 \x01(\v2\x11.ermite.SignatureR\x06author\x12/\n" +
273	"\tcommitter\x18\x04 \x01(\v2\x11.ermite.SignatureR\tcommitter\x12\x18\n" +
274	"\asummary\x18\x05 \x01(\tR\asummary\x12\x18\n" +
275	"\amessage\x18\x06 \x01(\tR\amessage\x12>\n" +
276	"\fverification\x18\a \x01(\v2\x1a.ermite.CommitVerificationR\fverification*[\n" +
277	"\tMergeMode\x12\x1a\n" +
278	"\x16MERGE_MODE_UNSPECIFIED\x10\x00\x12\x1b\n" +
279	"\x17MERGE_MODE_FAST_FORWARD\x10\x01\x12\x15\n" +
280	"\x11MERGE_MODE_SQUASH\x10\x02Bq\n" +
281	"\n" +
282	"com.ermiteB\n" +
283	"TypesProtoP\x01Z\x1fbnema.dev/ermite-api/gen/ermite\xa2\x02\x03EXX\xaa\x02\x06Ermite\xca\x02\x06Ermite\xe2\x02\x12Ermite\\GPBMetadata\xea\x02\x06Ermiteb\x06proto3"
284
285var (
286	file_ermite_types_proto_rawDescOnce sync.Once
287	file_ermite_types_proto_rawDescData []byte
288)
289
290func file_ermite_types_proto_rawDescGZIP() []byte {
291	file_ermite_types_proto_rawDescOnce.Do(func() {
292		file_ermite_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_types_proto_rawDesc), len(file_ermite_types_proto_rawDesc)))
293	})
294	return file_ermite_types_proto_rawDescData
295}
296
297var file_ermite_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
298var file_ermite_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
299var file_ermite_types_proto_goTypes = []any{
300	(MergeMode)(0),                // 0: ermite.MergeMode
301	(*Signature)(nil),             // 1: ermite.Signature
302	(*Commit)(nil),                // 2: ermite.Commit
303	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
304	(*CommitVerification)(nil),    // 4: ermite.CommitVerification
305}
306var file_ermite_types_proto_depIdxs = []int32{
307	3, // 0: ermite.Signature.time:type_name -> google.protobuf.Timestamp
308	1, // 1: ermite.Commit.author:type_name -> ermite.Signature
309	1, // 2: ermite.Commit.committer:type_name -> ermite.Signature
310	4, // 3: ermite.Commit.verification:type_name -> ermite.CommitVerification
311	4, // [4:4] is the sub-list for method output_type
312	4, // [4:4] is the sub-list for method input_type
313	4, // [4:4] is the sub-list for extension type_name
314	4, // [4:4] is the sub-list for extension extendee
315	0, // [0:4] is the sub-list for field type_name
316}
317
318func init() { file_ermite_types_proto_init() }
319func file_ermite_types_proto_init() {
320	if File_ermite_types_proto != nil {
321		return
322	}
323	file_ermite_signature_proto_init()
324	type x struct{}
325	out := protoimpl.TypeBuilder{
326		File: protoimpl.DescBuilder{
327			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
328			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_types_proto_rawDesc), len(file_ermite_types_proto_rawDesc)),
329			NumEnums:      1,
330			NumMessages:   2,
331			NumExtensions: 0,
332			NumServices:   0,
333		},
334		GoTypes:           file_ermite_types_proto_goTypes,
335		DependencyIndexes: file_ermite_types_proto_depIdxs,
336		EnumInfos:         file_ermite_types_proto_enumTypes,
337		MessageInfos:      file_ermite_types_proto_msgTypes,
338	}.Build()
339	File_ermite_types_proto = out.File
340	file_ermite_types_proto_goTypes = nil
341	file_ermite_types_proto_depIdxs = nil
342}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 18

↑↓ moveenter openesc close