From 35f764f2bc12553cd93c4f5e7b046f887ec353cb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 3 Nov 2024 00:39:52 -0500 Subject: initial file --- repo.proto | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 repo.proto (limited to 'repo.proto') diff --git a/repo.proto b/repo.proto new file mode 100644 index 0000000..c415075 --- /dev/null +++ b/repo.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +package gitpb; + +// import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +message Commit { + string id = 1; + string message = 2; + string author = 3; + google.protobuf.Timestamp timestamp = 4; // the last time we heard anything from this droplet +} + +message Tag { + string name = 1; + Commit commit = 2; +} + +message Branch { + string name = 1; + Commit head = 2; +} + +message Repository { + string name = 1; + repeated Branch branches = 2; + repeated Tag tags = 3; +} -- cgit v1.2.3