From ef7e03125dac88dd6f2fd66dccb9e52af1e06c92 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 14 Oct 2025 18:15:18 -0500 Subject: add stats to repo --- repo.proto | 2 ++ stat.proto | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/repo.proto b/repo.proto index 1968192..048dc3b 100644 --- a/repo.proto +++ b/repo.proto @@ -7,6 +7,7 @@ package gitpb; import "gitTag.proto"; import "goDep.proto"; +import "stat.proto"; import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp // global settings for autogenpb `autogenpb:mutex` @@ -69,6 +70,7 @@ message Repo { // `autogenpb GitTag currentTag = 24; // used to examine repo branches GitConfig gitConfig = 25; // protobuf of the current .git/config map control = 26; // control values. can be used to make packages (like .deb or .rpm) + Stats stats = 27; // rewrite the existing crappy code here } message Repos { // `autogenpb:marshal` `autogenpb:sort` `autogenpb:gui` `autogenpb:nomutex` `autogenpb:http` diff --git a/stat.proto b/stat.proto index c6ee078..1978f9c 100644 --- a/stat.proto +++ b/stat.proto @@ -13,7 +13,6 @@ 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 -- cgit v1.2.3