Files
GitJournal/protos/builders.proto
Vishesh Handa 542fb8c36a Avoid showing the "Reading Git History .." screen
This way startup feels much faster.
2021-12-10 10:57:20 +01:00

38 lines
691 B
Protocol Buffer

/*
* SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <me@vhanda.in>
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
syntax = "proto3";
package gitjournal;
message BlobCTimeBuilderData {
repeated bytes commitHashes = 1;
repeated bytes treeHashes = 2;
map<string, TzDateTime> map = 3;
bytes headHash = 4;
}
message FileMTimeBuilderData {
repeated bytes commitHashes = 1;
map<string, FileMTimeInfo> map = 3;
bytes headHash = 4;
}
message TzDateTime {
/// in seconds
uint64 timestamp = 1;
/// offset in seconds east of GMT
int32 offset = 2;
}
message FileMTimeInfo {
string filePath = 1;
bytes hash = 2;
TzDateTime dt = 3;
}