Notes added by 'git notes append'

This commit is contained in:
Jeff Carr 2025-01-09 21:39:47 -06:00
parent 488dc4aebd
commit 478b90233a
1 changed files with 394 additions and 0 deletions

View File

@ -824,3 +824,397 @@ func (all *Patchs) DeleteByFilename(s string) bool {
}
// `autogen:patch.pb.go`
// Code modified by go.wit.com/apps/autogenpb DO NOT EDIT.
//
// user defined Mutex locks were auto added
//
// autogenpb version & build time: v0.0.37-30-g805d3cd 2025.01.09_2100
// autogenpb auto generates Sort(), Unique() and Marshal() functions
// go install go.wit.com/apps/autogenpb@latest
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.35.2-devel
// protoc v3.21.12
// source: patch.proto
package forgepb
import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Patch struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // `autogenpb:unique` `autogenpb:sort`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` //
RepoPath string `protobuf:"bytes,3,opt,name=repoPath,proto3" json:"repoPath,omitempty"` // path to the git repo
BranchName string `protobuf:"bytes,4,opt,name=branchName,proto3" json:"branchName,omitempty"` //
BranchHash string `protobuf:"bytes,5,opt,name=branchHash,proto3" json:"branchHash,omitempty"` //
Ctime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"` // the git commit timestamp of this patch
CommitHash string `protobuf:"bytes,8,opt,name=commitHash,proto3" json:"commitHash,omitempty"` // the git commit hash of this patch
StartHash string `protobuf:"bytes,9,opt,name=startHash,proto3" json:"startHash,omitempty"` // the start commit hash
Files []string `protobuf:"bytes,10,rep,name=Files,proto3" json:"Files,omitempty"` // the filenames this patch changes
}
func (x *Patch) Reset() {
*x = Patch{}
mi := &file_patch_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Patch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Patch) ProtoMessage() {}
func (x *Patch) ProtoReflect() protoreflect.Message {
mi := &file_patch_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Patch.ProtoReflect.Descriptor instead.
func (*Patch) Descriptor() ([]byte, []int) {
return file_patch_proto_rawDescGZIP(), []int{0}
}
func (x *Patch) GetFilename() string {
if x != nil {
return x.Filename
}
return ""
}
func (x *Patch) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *Patch) GetRepoPath() string {
if x != nil {
return x.RepoPath
}
return ""
}
func (x *Patch) GetBranchName() string {
if x != nil {
return x.BranchName
}
return ""
}
func (x *Patch) GetBranchHash() string {
if x != nil {
return x.BranchHash
}
return ""
}
func (x *Patch) GetCtime() *timestamppb.Timestamp {
if x != nil {
return x.Ctime
}
return nil
}
func (x *Patch) GetCommitHash() string {
if x != nil {
return x.CommitHash
}
return ""
}
func (x *Patch) GetStartHash() string {
if x != nil {
return x.StartHash
}
return ""
}
func (x *Patch) GetFiles() []string {
if x != nil {
return x.Files
}
return nil
}
type Patchs struct {
// Lock sync.RWMutex // autogenpb skipped this. needs --mutex command line arg
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:0703df95-6a38-4422-994b-c55d3d6001f9` // todo: add file support
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // could be used for protobuf schema change violations?
Patchs []*Patch `protobuf:"bytes,3,rep,name=Patchs,proto3" json:"Patchs,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` //
Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"` //
GitAuthorName string `protobuf:"bytes,6,opt,name=gitAuthorName,proto3" json:"gitAuthorName,omitempty"` //
GitAuthorEmail string `protobuf:"bytes,7,opt,name=gitAuthorEmail,proto3" json:"gitAuthorEmail,omitempty"` //
Ctime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=ctime,proto3" json:"ctime,omitempty"` // create time of this patchset
TmpDir string `protobuf:"bytes,9,opt,name=tmpDir,proto3" json:"tmpDir,omitempty"` // temp dir
StartBranchName string `protobuf:"bytes,10,opt,name=startBranchName,proto3" json:"startBranchName,omitempty"` //
EndBranchName string `protobuf:"bytes,11,opt,name=endBranchName,proto3" json:"endBranchName,omitempty"` //
StartBranchHash string `protobuf:"bytes,12,opt,name=startBranchHash,proto3" json:"startBranchHash,omitempty"` //
EndBranchHash string `protobuf:"bytes,13,opt,name=endBranchHash,proto3" json:"endBranchHash,omitempty"` //
}
func (x *Patchs) Reset() {
*x = Patchs{}
mi := &file_patch_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Patchs) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Patchs) ProtoMessage() {}
func (x *Patchs) ProtoReflect() protoreflect.Message {
mi := &file_patch_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Patchs.ProtoReflect.Descriptor instead.
func (*Patchs) Descriptor() ([]byte, []int) {
return file_patch_proto_rawDescGZIP(), []int{1}
}
func (x *Patchs) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *Patchs) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *Patchs) GetPatchs() []*Patch {
if x != nil {
return x.Patchs
}
return nil
}
func (x *Patchs) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Patchs) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *Patchs) GetGitAuthorName() string {
if x != nil {
return x.GitAuthorName
}
return ""
}
func (x *Patchs) GetGitAuthorEmail() string {
if x != nil {
return x.GitAuthorEmail
}
return ""
}
func (x *Patchs) GetCtime() *timestamppb.Timestamp {
if x != nil {
return x.Ctime
}
return nil
}
func (x *Patchs) GetTmpDir() string {
if x != nil {
return x.TmpDir
}
return ""
}
func (x *Patchs) GetStartBranchName() string {
if x != nil {
return x.StartBranchName
}
return ""
}
func (x *Patchs) GetEndBranchName() string {
if x != nil {
return x.EndBranchName
}
return ""
}
func (x *Patchs) GetStartBranchHash() string {
if x != nil {
return x.StartBranchHash
}
return ""
}
func (x *Patchs) GetEndBranchHash() string {
if x != nil {
return x.EndBranchHash
}
return ""
}
var File_patch_proto protoreflect.FileDescriptor
var file_patch_proto_rawDesc = []byte{
0x0a, 0x0b, 0x70, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x66,
0x6f, 0x72, 0x67, 0x65, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x02, 0x0a, 0x05, 0x50, 0x61, 0x74, 0x63,
0x68, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a,
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74,
0x61, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x50, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1e, 0x0a,
0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a,
0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x61, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x61, 0x73, 0x68, 0x12, 0x30, 0x0a,
0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12,
0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, 0x68, 0x18, 0x08, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12,
0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x48, 0x61, 0x73, 0x68, 0x18, 0x09, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a,
0x05, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x46, 0x69,
0x6c, 0x65, 0x73, 0x22, 0xc4, 0x03, 0x0a, 0x06, 0x50, 0x61, 0x74, 0x63, 0x68, 0x73, 0x12, 0x12,
0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75,
0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x06,
0x50, 0x61, 0x74, 0x63, 0x68, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66,
0x6f, 0x72, 0x67, 0x65, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x74, 0x63, 0x68, 0x52, 0x06, 0x50, 0x61,
0x74, 0x63, 0x68, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x67, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x4e,
0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x69, 0x74, 0x41, 0x75,
0x74, 0x68, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x67, 0x69, 0x74, 0x41,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0e, 0x67, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c,
0x12, 0x30, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69,
0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6d, 0x70, 0x44, 0x69, 0x72, 0x18, 0x09, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x74, 0x6d, 0x70, 0x44, 0x69, 0x72, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x74,
0x61, 0x72, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x65, 0x6e, 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63,
0x68, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x64,
0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x74,
0x61, 0x72, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x61, 0x73, 0x68, 0x18, 0x0c, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
0x48, 0x61, 0x73, 0x68, 0x12, 0x24, 0x0a, 0x0d, 0x65, 0x6e, 0x64, 0x42, 0x72, 0x61, 0x6e, 0x63,
0x68, 0x48, 0x61, 0x73, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x64,
0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x48, 0x61, 0x73, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_patch_proto_rawDescOnce sync.Once
file_patch_proto_rawDescData = file_patch_proto_rawDesc
)
func file_patch_proto_rawDescGZIP() []byte {
file_patch_proto_rawDescOnce.Do(func() {
file_patch_proto_rawDescData = protoimpl.X.CompressGZIP(file_patch_proto_rawDescData)
})
return file_patch_proto_rawDescData
}
var file_patch_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_patch_proto_goTypes = []any{
(*Patch)(nil), // 0: forgepb.Patch
(*Patchs)(nil), // 1: forgepb.Patchs
(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_patch_proto_depIdxs = []int32{
2, // 0: forgepb.Patch.ctime:type_name -> google.protobuf.Timestamp
0, // 1: forgepb.Patchs.Patchs:type_name -> forgepb.Patch
2, // 2: forgepb.Patchs.ctime:type_name -> google.protobuf.Timestamp
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_patch_proto_init() }
func file_patch_proto_init() {
if File_patch_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_patch_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_patch_proto_goTypes,
DependencyIndexes: file_patch_proto_depIdxs,
MessageInfos: file_patch_proto_msgTypes,
}.Build()
File_patch_proto = out.File
file_patch_proto_rawDesc = nil
file_patch_proto_goTypes = nil
file_patch_proto_depIdxs = nil
}