summaryrefslogtreecommitdiff
path: root/repository.proto
diff options
context:
space:
mode:
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;
+}