summaryrefslogtreecommitdiff
path: root/refs.proto
blob: ccfffd83a74af561cdba7913781875824bac52e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}