junk code
This commit is contained in:
parent
27820d88f2
commit
acc18b186f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue