v0.3.0 5c335b8

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	unknownFields protoimpl.UnknownFields
174	sizeCache     protoimpl.SizeCache
175}
176
177func (x *Commit) Reset() {
178	*x = Commit{}
179	mi := &file_ermite_types_proto_msgTypes[1]
180	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
181	ms.StoreMessageInfo(mi)
182}
183
184func (x *Commit) String() string {
185	return protoimpl.X.MessageStringOf(x)
186}
187
188func (*Commit) ProtoMessage() {}
189
190func (x *Commit) ProtoReflect() protoreflect.Message {
191	mi := &file_ermite_types_proto_msgTypes[1]
192	if x != nil {
193		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
194		if ms.LoadMessageInfo() == nil {
195			ms.StoreMessageInfo(mi)
196		}
197		return ms
198	}
199	return mi.MessageOf(x)
200}
201
202// Deprecated: Use Commit.ProtoReflect.Descriptor instead.
203func (*Commit) Descriptor() ([]byte, []int) {
204	return file_ermite_types_proto_rawDescGZIP(), []int{1}
205}
206
207func (x *Commit) GetId() string {
208	if x != nil {
209		return x.Id
210	}
211	return ""
212}
213
214func (x *Commit) GetParentIds() []string {
215	if x != nil {
216		return x.ParentIds
217	}
218	return nil
219}
220
221func (x *Commit) GetAuthor() *Signature {
222	if x != nil {
223		return x.Author
224	}
225	return nil
226}
227
228func (x *Commit) GetCommitter() *Signature {
229	if x != nil {
230		return x.Committer
231	}
232	return nil
233}
234
235func (x *Commit) GetSummary() string {
236	if x != nil {
237		return x.Summary
238	}
239	return ""
240}
241
242func (x *Commit) GetMessage() string {
243	if x != nil {
244		return x.Message
245	}
246	return ""
247}
248
249var File_ermite_types_proto protoreflect.FileDescriptor
250
251const file_ermite_types_proto_rawDesc = "" +
252	"\n" +
253	"\x12ermite/types.proto\x12\x06ermite\x1a\x1fgoogle/protobuf/timestamp.proto\"e\n" +
254	"\tSignature\x12\x12\n" +
255	"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
256	"\x05email\x18\x02 \x01(\tR\x05email\x12.\n" +
257	"\x04time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\"\xc7\x01\n" +
258	"\x06Commit\x12\x0e\n" +
259	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
260	"\n" +
261	"parent_ids\x18\x02 \x03(\tR\tparentIds\x12)\n" +
262	"\x06author\x18\x03 \x01(\v2\x11.ermite.SignatureR\x06author\x12/\n" +
263	"\tcommitter\x18\x04 \x01(\v2\x11.ermite.SignatureR\tcommitter\x12\x18\n" +
264	"\asummary\x18\x05 \x01(\tR\asummary\x12\x18\n" +
265	"\amessage\x18\x06 \x01(\tR\amessage*[\n" +
266	"\tMergeMode\x12\x1a\n" +
267	"\x16MERGE_MODE_UNSPECIFIED\x10\x00\x12\x1b\n" +
268	"\x17MERGE_MODE_FAST_FORWARD\x10\x01\x12\x15\n" +
269	"\x11MERGE_MODE_SQUASH\x10\x02Bq\n" +
270	"\n" +
271	"com.ermiteB\n" +
272	"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"
273
274var (
275	file_ermite_types_proto_rawDescOnce sync.Once
276	file_ermite_types_proto_rawDescData []byte
277)
278
279func file_ermite_types_proto_rawDescGZIP() []byte {
280	file_ermite_types_proto_rawDescOnce.Do(func() {
281		file_ermite_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_types_proto_rawDesc), len(file_ermite_types_proto_rawDesc)))
282	})
283	return file_ermite_types_proto_rawDescData
284}
285
286var file_ermite_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
287var file_ermite_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
288var file_ermite_types_proto_goTypes = []any{
289	(MergeMode)(0),                // 0: ermite.MergeMode
290	(*Signature)(nil),             // 1: ermite.Signature
291	(*Commit)(nil),                // 2: ermite.Commit
292	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
293}
294var file_ermite_types_proto_depIdxs = []int32{
295	3, // 0: ermite.Signature.time:type_name -> google.protobuf.Timestamp
296	1, // 1: ermite.Commit.author:type_name -> ermite.Signature
297	1, // 2: ermite.Commit.committer:type_name -> ermite.Signature
298	3, // [3:3] is the sub-list for method output_type
299	3, // [3:3] is the sub-list for method input_type
300	3, // [3:3] is the sub-list for extension type_name
301	3, // [3:3] is the sub-list for extension extendee
302	0, // [0:3] is the sub-list for field type_name
303}
304
305func init() { file_ermite_types_proto_init() }
306func file_ermite_types_proto_init() {
307	if File_ermite_types_proto != nil {
308		return
309	}
310	type x struct{}
311	out := protoimpl.TypeBuilder{
312		File: protoimpl.DescBuilder{
313			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
314			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_types_proto_rawDesc), len(file_ermite_types_proto_rawDesc)),
315			NumEnums:      1,
316			NumMessages:   2,
317			NumExtensions: 0,
318			NumServices:   0,
319		},
320		GoTypes:           file_ermite_types_proto_goTypes,
321		DependencyIndexes: file_ermite_types_proto_depIdxs,
322		EnumInfos:         file_ermite_types_proto_enumTypes,
323		MessageInfos:      file_ermite_types_proto_msgTypes,
324	}.Build()
325	File_ermite_types_proto = out.File
326	file_ermite_types_proto_goTypes = nil
327	file_ermite_types_proto_depIdxs = nil
328}

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