summaryrefslogtreecommitdiff
path: root/gitConfig.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-30 23:15:45 -0500
committerJeff Carr <[email protected]>2025-10-30 23:15:45 -0500
commitda2910c708d29c6e2ab31ed22b81926621f5978e (patch)
treee464457990c7b19347737e9005d42f87403336fc /gitConfig.proto
parent1fc8a831723f831a13defcd381380d130028f831 (diff)
start the process of dumping gitTag.proto
Diffstat (limited to 'gitConfig.proto')
-rw-r--r--gitConfig.proto32
1 files changed, 32 insertions, 0 deletions
diff --git a/gitConfig.proto b/gitConfig.proto
new file mode 100644
index 0000000..0de9cd0
--- /dev/null
+++ b/gitConfig.proto
@@ -0,0 +1,32 @@
+syntax = "proto3";
+
+package gitpb;
+
+import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
+
+message GitRemote { // `autogenpb:nomutex`
+ string url = 1;
+ string fetch = 2;
+}
+
+message GitBranch { // `autogenpb:nomutex`
+ string remote = 1; // the name of the remote repo
+ string merge = 2; // the merge path from the config file
+ string name = 3; // the branch name from the config file
+}
+
+message GitConfig { // `autogenpb:nomutex`
+ map<string, string> core = 1; // map[origin] = "https:/git.wit.org/gui/gadgets"
+ map<string, GitRemote> remotes = 2; // map[origin] = "https:/git.wit.org/gui/gadgets"
+ map<string, GitBranch> branches = 3; // map[guimaster] = origin guimaster
+ map<string, string> submodules = 4;
+ map<string, string> hashes = 5;
+ map<string, string> versions = 6;
+ repeated GitBranch local = 7; // 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
+}