add a way to track a tag

This commit is contained in:
Jeff Carr 2025-01-17 13:21:03 -06:00
parent 660255c8a3
commit 803f0cf98e
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ message Repo { // `autogenpb:marshal` `autogenpb:2nomutex`
string userVersion = 21; // string userVersion = 21; //
repeated string dirtyList = 22; // store the list from git status --porcelain repeated string dirtyList = 22; // store the list from git status --porcelain
string state = 23; // status or state. useful for building tooling string state = 23; // status or state. useful for building tooling
GitTag currentTag = 24; // used to examine repo branches
} }
message Repos { // `autogenpb:marshal` `autogenpb:sort` `autogenpb:2nomutex` message Repos { // `autogenpb:marshal` `autogenpb:sort` `autogenpb:2nomutex`

View File

@ -80,7 +80,7 @@ func (repo *Repo) RunStrictNew(cmd []string) (*cmd.Status, error) {
log.Warn(cmd, "failed with", result.Exit) log.Warn(cmd, "failed with", result.Exit)
return &result, errors.New(fmt.Sprint(cmd, "failed with", result.Exit)) return &result, errors.New(fmt.Sprint(cmd, "failed with", result.Exit))
} }
return nil, nil return &result, nil
} }
func (repo *Repo) Exists(filename string) bool { func (repo *Repo) Exists(filename string) bool {