summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 22:17:22 -0500
committerJeff Carr <[email protected]>2025-10-14 22:17:22 -0500
commit32d4a18a23f2060b5f5dc312bef8fd7975386125 (patch)
tree66f51bf6dc7fa8bca0a3c9ba0f9b5595e214efd0
parent1229ae98816f8f536ecd90344e978b5cd5c1ecd6 (diff)
patchId is the only thing we care about
-rw-r--r--stat.OpenStats.go24
-rw-r--r--stat.proto4
2 files changed, 26 insertions, 2 deletions
diff --git a/stat.OpenStats.go b/stat.OpenStats.go
new file mode 100644
index 0000000..9e53fa2
--- /dev/null
+++ b/stat.OpenStats.go
@@ -0,0 +1,24 @@
+// 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/14 23:24:11 ( 3 h)
+// Theese sort.pb.go and marshal.pb.go files are autogenerated
+// The autogenpb sources have example .proto files with instructions
+//
+
+package gitpb
+
+import (
+ "path/filepath"
+
+ "go.wit.com/lib/config"
+)
+
+func (r *Repo) LoadStats() (*Stats, error) {
+ filename := filepath.Join(r.FullPath, ".git/", "stats.pb")
+ pb := NewStats()
+ pb.Filename = filename
+ err := config.LoadPB(pb)
+ return pb, err
+}
diff --git a/stat.proto b/stat.proto
index 7c51b30..7693660 100644
--- a/stat.proto
+++ b/stat.proto
@@ -13,8 +13,8 @@ message Stat {
REMOTE = 2;
TAG = 3;
}
- string hash = 1; // `autogenpb:unique` // git hash
- string patchId = 2; // `autogenpb:unique` // git hash
+ 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
string name = 4; //
string remote = 5; // blank unless REMOTE