summaryrefslogtreecommitdiff
path: root/gitTag.proto
diff options
context:
space:
mode:
Diffstat (limited to 'gitTag.proto')
-rw-r--r--gitTag.proto19
1 files changed, 19 insertions, 0 deletions
diff --git a/gitTag.proto b/gitTag.proto
index baae552..dbc28de 100644
--- a/gitTag.proto
+++ b/gitTag.proto
@@ -4,6 +4,25 @@ 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;
+ string merge = 2;
+}
+
+// readGitConfig reads and parses the .git/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;
+}
message GitTag { // `autogenpb:nomutex`
string refname = 1; // `autogenpb:unique` `autogenpb:sort` // tag name. treated as unique