summaryrefslogtreecommitdiff
path: root/stat.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 18:04:51 -0500
committerJeff Carr <[email protected]>2025-10-14 18:04:51 -0500
commit946d8dfc137792a072521d0290fac280b4781965 (patch)
tree91d6a07e2b9e36a2eea33d574ad59dd031c8762f /stat.proto
parent09ba8b90f02c2b482c2cc8af29be35991af05701 (diff)
add stats
Diffstat (limited to 'stat.proto')
-rw-r--r--stat.proto32
1 files changed, 32 insertions, 0 deletions
diff --git a/stat.proto b/stat.proto
new file mode 100644
index 0000000..c6ee078
--- /dev/null
+++ b/stat.proto
@@ -0,0 +1,32 @@
+// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
+
+syntax = "proto3";
+
+package gitpb;
+
+import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
+
+message Stat {
+ enum RefType {
+ UNKNOWN = 0;
+ LOCAL = 1;
+ 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
+}
+// .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
+}