diff options
| author | Jeff Carr <[email protected]> | 2025-01-10 04:39:33 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-10 04:39:33 -0600 |
| commit | 1e38cacfa788fc6c0ed2abcf627f4d6198f0b2ae (patch) | |
| tree | 806001213022ab7ebf68f798fd3aeaeff366424e /patchset.proto | |
| parent | 40c340c6267aa53164804aad6ed988183fc42d3f (diff) | |
no going back now
Diffstat (limited to 'patchset.proto')
| -rw-r--r-- | patchset.proto | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/patchset.proto b/patchset.proto new file mode 100644 index 0000000..afb725a --- /dev/null +++ b/patchset.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +package forgepb; + +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +message Patch { + string filename = 1; // `autogenpb:unique` + bytes data = 2; // + string repoPath = 3; // path to the git repo + string branchName = 4; // + string branchHash = 5; // + google.protobuf.Timestamp ctime = 7; // the git commit timestamp of this patch + string commitHash = 8; // the git commit hash of this patch + string startHash = 9; // the start commit hash + repeated string Files = 10; // the filenames this patch changes +} + +message Patchset { // `autogenpb:marshal` + repeated Patch Patches = 1; + string name = 2; // + string comment = 3; // + string gitAuthorName = 4; // + string gitAuthorEmail = 5; // + google.protobuf.Timestamp ctime = 6; // create time of this patchset + string tmpDir = 7; // temp dir + string startBranchName = 8; // + string endBranchName = 9; // + string startBranchHash = 10; // + string endBranchHash = 11; // +} + +message Patchsets { // `autogenpb:marshal` + string uuid = 1; // `autogenpb:uuid:be926ad9-f07f-484c-adf2-d96eeabf3079` // todo: add autogenpb support for this + string version = 2; // could be used for protobuf schema change violations? + repeated Patchset Patchsets = 3; +} |
