From 316bc8ea81200a48b8a7259905720362b512ce2a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 26 Nov 2024 04:34:01 -0600 Subject: Day 1 --- refs.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 refs.proto (limited to 'refs.proto') 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; +} -- cgit v1.2.3