zoopb/repo.proto

30 lines
615 B
Protocol Buffer

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