summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--stat.proto27
2 files changed, 18 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index dcba6f2..9d20fa2 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/stat.proto b/stat.proto
index 1978f9c..7c51b30 100644
--- a/stat.proto
+++ b/stat.proto
@@ -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
}