summaryrefslogtreecommitdiff
path: root/repository.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-03 00:41:39 -0500
committerJeff Carr <[email protected]>2024-11-03 00:41:39 -0500
commit8dea9ab921fdca434c6a47908d20488621eb820f (patch)
tree32d905618747fa6f59ed7939dec8c9bfb2bc6ab0 /repository.proto
parent35f764f2bc12553cd93c4f5e7b046f887ec353cb (diff)
name correctlyv0.0.1
Diffstat (limited to 'repository.proto')
-rw-r--r--repository.proto29
1 files changed, 29 insertions, 0 deletions
diff --git a/repository.proto b/repository.proto
new file mode 100644
index 0000000..c415075
--- /dev/null
+++ b/repository.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;
+}