junk code

This commit is contained in:
Jeff Carr 2025-03-23 04:47:38 -05:00
parent 27820d88f2
commit acc18b186f
1 changed files with 6 additions and 5 deletions

View File

@ -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