diff options
| author | Jeff Carr <[email protected]> | 2025-10-14 22:00:55 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-14 22:00:55 -0500 |
| commit | 1229ae98816f8f536ecd90344e978b5cd5c1ecd6 (patch) | |
| tree | 914f9e17584da77fa97ba7939c23225df4eb8113 | |
| parent | ef7e03125dac88dd6f2fd66dccb9e52af1e06c92 (diff) | |
definately want stat.Filename
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | stat.proto | 27 |
2 files changed, 18 insertions, 13 deletions
@@ -1,6 +1,10 @@ all: repo.pb.go goimports vet @echo This GO code passes the compile checks +proto-renumber: clean + autogenpb --renumber --proto stat.proto + make goimports vet + repo.pb.go: repo.proto make generate @@ -13,19 +13,20 @@ message Stat { REMOTE = 2; TAG = 3; } - string hash = 1; // `autogenpb:unique` // git hash - string patchId = 2; // `autogenpb:unique` // git hash - google.protobuf.Timestamp mtime = 3; // mtime 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 - string subject = 7; // git tag subject + string hash = 1; // `autogenpb:unique` // git hash + string patchId = 2; // `autogenpb:unique` // git hash + google.protobuf.Timestamp mtime = 3; // mtime 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 + string subject = 7; // git tag subject } // .git/ stats -message Stats { // `autogenpb:marshal` `autogenpb:gui` `autogenpb:http` - string uuid = 1; // `autogenpb:uuid:ba236558-f8a1-4c47-a14a-8856a24d3f72` - string version = 2; // `autogenpb:version:v0.0.1` - repeated Stat stats = 3; - string head = 4; // the current origin hash - google.protobuf.Timestamp mtime = 5; // mtime for the .git/config file +message Stats { // `autogenpb:marshal` `autogenpb:gui` `autogenpb:http` + string uuid = 1; // `autogenpb:uuid:ba236558-f8a1-4c47-a14a-8856a24d3f72` + string version = 2; // `autogenpb:version:v0.0.1` + 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 } |
