summaryrefslogtreecommitdiff
path: root/refs.proto
diff options
context:
space:
mode:
Diffstat (limited to 'refs.proto')
-rw-r--r--refs.proto19
1 files changed, 19 insertions, 0 deletions
diff --git a/refs.proto b/refs.proto
new file mode 100644
index 0000000..ccfffd8
--- /dev/null
+++ b/refs.proto
@@ -0,0 +1,19 @@
+syntax = "proto3";
+
+package gitpb;
+
+import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
+
+message Ref {
+ string hash = 1; // git objectname
+ google.protobuf.Timestamp ctime = 2; // git creatordate
+ string refName = 3; // git refname
+ string author = 4; // git author
+ string subject = 5; // git subject
+}
+
+message Refs {
+ string uuid = 1; // I guess why not just have this on each file
+ string version = 2; // maybe can be used for protobuf schema change violations
+ repeated Ref refs = 3;
+}