summaryrefslogtreecommitdiff
path: root/gitConfig.proto
blob: 094e204c176d54b55e9c746896f3b01824c21c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
syntax = "proto3";

package gitpb;

import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp

message GitRemote {                                // `autogenpb:nomutex`
        string                name           = 1;  // the branch name from the config file
        string                url            = 2;
        string                fetch          = 3;
}

message GitBranch {                                // `autogenpb:nomutex`
        string                name           = 1;  // the branch name from the config file
        string                remote         = 2;  // the name of the remote repo
        string                merge          = 3;  // the merge path from the config file
}

message GitConfig {                                // `autogenpb:nomutex`
        map<string, string>   core           = 1;  // map[origin] = "https:/git.wit.org/gui/gadgets"
        map<string, string>   submodules     = 2;
        repeated GitBranch    branches       = 3;  // move this away from the map<> variables
        repeated GitRemote    remotes        = 4;  // move this away from the map<> variables
}

message GitConfigs {                               // `autogenpb:marshal` `autogenpb:mutex`
        string                uuid           = 1;  // `autogenpb:uuid:e70b71ec-0326-4485-8460-4a3c4d7b6919`
        string                version        = 2;  // `autogenpb:version:v0.0.1`
        repeated GitConfig    GitConfigs     = 3;  // THIS MUST BE  GitConfig  and then  GitConfigs
}