diff options
| author | Jeff Carr <[email protected]> | 2025-10-15 00:25:50 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-15 00:25:50 -0500 |
| commit | 9d78641fec474803bd37c281ff1b436bf4666a21 (patch) | |
| tree | fd8b0682560a7f767b50f2396fa05e8e383842c6 | |
| parent | 32d4a18a23f2060b5f5dc312bef8fd7975386125 (diff) | |
misc improvementsv0.0.164
| -rw-r--r-- | Makefile | 7 | ||||
| -rw-r--r-- | stat.SaveVerbose.go | 25 | ||||
| -rw-r--r-- | stat.proto | 4 |
3 files changed, 34 insertions, 2 deletions
@@ -1,8 +1,15 @@ all: repo.pb.go goimports vet + autogenpb --proto stat.proto + autogenpb --proto gitTag.proto + autogenpb --proto goDep.proto + autogenpb --proto repo.proto @echo This GO code passes the compile checks proto-renumber: clean autogenpb --renumber --proto stat.proto + autogenpb --renumber --proto gitTag.proto + autogenpb --renumber --proto goDep.proto + autogenpb --renumber --proto repo.proto make goimports vet repo.pb.go: repo.proto diff --git a/stat.SaveVerbose.go b/stat.SaveVerbose.go new file mode 100644 index 0000000..5505481 --- /dev/null +++ b/stat.SaveVerbose.go @@ -0,0 +1,25 @@ +// Code generated by go.wit.com/apps/autogenpb DO NOT EDIT. +// go install go.wit.com/apps/autogenpb@latest +// +// This file was autogenerated with autogenpb: +// autogenpb v0.5.24 Built on 2025/10/15 04:52:04 ( 17 s) +// Theese sort.pb.go and marshal.pb.go files are autogenerated +// The autogenpb sources have example .proto files with instructions +// + +package gitpb + +import ( + "go.wit.com/lib/config" + "go.wit.com/log" +) + +func (pb *Stats) SaveVerbose() error { + err := config.SavePB(pb) + if err == nil { + log.Printf("Saved %s with len(%d) hashes.\n", pb.Filename, pb.Len()) + } else { + log.Printf("Save err %s with len(%d) hashes. err(%v)\n", pb.Filename, pb.Len(), err) + } + return err +} @@ -15,7 +15,7 @@ message Stat { } string patchId = 1; // `autogenpb:unique` // git hash string hash = 2; // `autogenpb:unique` // git hash - google.protobuf.Timestamp mtime = 3; // mtime for the .git/config file + google.protobuf.Timestamp ctime = 3; // ctime for the .git/config file string name = 4; // string remote = 5; // blank unless REMOTE RefType type = 6; // is set by git as the master branch @@ -28,5 +28,5 @@ message Stats { // `autogenpb:marshal` `a repeated Stat stats = 3; string filename = 4; // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save() string head = 5; // the current origin hash - google.protobuf.Timestamp mtime = 6; // mtime for the .git/config file + google.protobuf.Timestamp mtime = 6; // mtime for .git/ } |
