gitpb/refs.proto

20 lines
566 B
Protocol Buffer

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;
}