From 0c30a9da2f9a30a9f41c755879ea5be266180ce0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Jan 2025 10:34:58 -0600 Subject: parse .git/config --- gitTag.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gitTag.proto') 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 core = 1; // map[origin] = "https:/git.wit.org/gui/gadgets" + map remotes = 2; // map[origin] = "https:/git.wit.org/gui/gadgets" + map branches = 3; // map[guimaster] = origin guimaster + map submodules = 4; + map hashes = 5; + map versions = 6; +} message GitTag { // `autogenpb:nomutex` string refname = 1; // `autogenpb:unique` `autogenpb:sort` // tag name. treated as unique -- cgit v1.2.3