diff options
| author | Jeff Carr <[email protected]> | 2025-11-03 06:50:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-11-03 06:50:25 -0600 |
| commit | ed9c0917ae16ad2a5e2343799a16645497482918 (patch) | |
| tree | 5fe64eaf954df87800273bf1902f41e542db6236 /stat.proto | |
| parent | f1dbe15854ba41e5f4706a436a5324b0a4434122 (diff) | |
working on remote refs
Diffstat (limited to 'stat.proto')
| -rw-r--r-- | stat.proto | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -6,25 +6,30 @@ package gitpb; import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp -message Stat { +message GitRef { enum RefType { UNKNOWN = 0; LOCAL = 1; REMOTE = 2; TAG = 3; } + + string name = 1; // + string remote = 2; // blank unless REMOTE + RefType type = 3; // is set by git as the master branch + string subject = 4; // git tag subject +} +message Stat { string patchId = 1; // `autogenpb:unique` `autogenpb:sort` string hash = 2; // `autogenpb:unique` `autogenpb:sort` google.protobuf.Timestamp ctime = 3; // `autogenpb:unique` `autogenpb:sort` - 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 + repeated GitRef refs = 4; // } -// .git/ stats + +// normally stored as .git/*.pb cache files 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` + string version = 2; // `autogenpb:version:v0.0.2` repeated Stat stats = 3; string filename = 4; // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save() string head = 5; // the current origin hash |
