diff --git a/gitTag.proto b/gitTag.proto index 53eb346..c1683d8 100644 --- a/gitTag.proto +++ b/gitTag.proto @@ -4,18 +4,17 @@ package gitpb; import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp -// global settings for autogenpb `autogenpb:mutex` message GitTag { // `autogenpb:marshal` - string refname = 1; // `autogenpb:unique` // tag name. treated as unique + string refname = 1; // `autogenpb:unique` `autogenpb:sort` // tag name. treated as unique google.protobuf.Timestamp creatordate = 2; // git creatordate google.protobuf.Timestamp authordate = 3; // git author date - string hash = 4; // `autogenpb:unique` // git hash + string hash = 4; // `autogenpb:unique` // git hash string subject = 5; // git tag subject } -message GitTags { // `autogenpb:marshal` - string uuid = 1; // I guess why not just have this on each file - string version = 2; // maybe can be used for protobuf schema change violations +message GitTags { // `autogenpb:marshal` `autogenpb:mutex` + string uuid = 1; // `autogenpb:uuid` + string version = 2; // `autogenpb:version:v0.0.47` repeated GitTag gitTags = 3; } diff --git a/goDep.proto b/goDep.proto index df374f5..624b9a8 100644 --- a/goDep.proto +++ b/goDep.proto @@ -9,15 +9,15 @@ import "google/protobuf/timestamp.proto"; // Import the well-known type for Time // global settings for autogenpb `autogenpb:mutex` message GoDep { // `autogenpb:marshal` - string hash = 1; // `autogenpb:unique` // md5sum/hash value from the go.sum file + string hash = 1; // `autogenpb:unique` `autogenpb:sort` // md5sum/hash value from the go.sum file google.protobuf.Timestamp ctime = 2; // get the go date from 'go list' ? string version = 3; // v1.2.2 - string goPath = 4; // `autogenpb:unique` // "go.wit.com/lib/foo" + string goPath = 4; // `autogenpb:unique` `autogenpb:sort` // "go.wit.com/lib/foo" string goVersion = 5; // version of golang the developer used to make this package version } message GoDeps { // `autogenpb:marshal` - string uuid = 1; // I guess why not just have this on each file - string version = 2; // maybe can be used for protobuf schema change violations + string uuid = 1; // `autogenpb:uuid:` + string version = 2; // `autogenpb:version` repeated GoDep goDeps = 3; } diff --git a/repo.proto b/repo.proto index 82965b8..e26ca52 100644 --- a/repo.proto +++ b/repo.proto @@ -12,7 +12,7 @@ import "google/protobuf/timestamp.proto"; // Import the well-known type for Time // global settings for autogenpb `autogenpb:mutex` message Repo { // `autogenpb:marshal` - string fullPath = 1; // `autogenpb:unique` // the actual path to the .git directory: '/home/devel/golang.org/x/tools' + string fullPath = 1; // `autogenpb:unique` `autogenpb:sort` // the actual path to the .git directory: '/home/devel/golang.org/x/tools' string masterBranchName = 3; // git 'main' or 'master' branch name string develBranchName = 4; // whatever the git 'devel' branch name is string userBranchName = 5; // whatever your username branch is