diff options
| author | Jeff Carr <[email protected]> | 2025-03-23 04:47:38 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-23 04:47:38 -0500 |
| commit | acc18b186ff91d5e5d2e36996e31332f56c397d6 (patch) | |
| tree | 2c282932369b915d7fce792740a4dd3e9a13e0d0 /reloadTags.go | |
| parent | 27820d88f23820ffb3facbbda993679d76b98f5a (diff) | |
junk codev0.0.97
Diffstat (limited to 'reloadTags.go')
| -rw-r--r-- | reloadTags.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/reloadTags.go b/reloadTags.go index 37bc762..9017171 100644 --- a/reloadTags.go +++ b/reloadTags.go @@ -11,12 +11,12 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -func (repo *Repo) AllCommits() { - tags := []string{"cd", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"} - format := strings.Join(tags, "_,,,_%") +func (repo *Repo) AllCommits() error { + // tags := []string{"cd", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"} + // format := strings.Join(tags, "_,,,_%") - cmd = []string{"git", "log", "--format=%cd"} - result = shell.PathRunQuiet(repo.FullPath, cmd) + cmd := []string{"git", "log", "--format=%cd"} + result := shell.PathRunQuiet(repo.FullPath, cmd) if result.Error != nil { log.Warn("git for-each-ref error:", result.Error) return result.Error @@ -25,6 +25,7 @@ func (repo *Repo) AllCommits() { newest = strings.TrimSpace(newest) tmp := getGitDateStamp(newest) repo.Times.NewestCommit = timestamppb.New(tmp) + return nil } // reload the tags |
