junk code
This commit is contained in:
parent
27820d88f2
commit
acc18b186f
|
@ -11,12 +11,12 @@ import (
|
||||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (repo *Repo) AllCommits() {
|
func (repo *Repo) AllCommits() error {
|
||||||
tags := []string{"cd", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"}
|
// tags := []string{"cd", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"}
|
||||||
format := strings.Join(tags, "_,,,_%")
|
// format := strings.Join(tags, "_,,,_%")
|
||||||
|
|
||||||
cmd = []string{"git", "log", "--format=%cd"}
|
cmd := []string{"git", "log", "--format=%cd"}
|
||||||
result = shell.PathRunQuiet(repo.FullPath, cmd)
|
result := shell.PathRunQuiet(repo.FullPath, cmd)
|
||||||
if result.Error != nil {
|
if result.Error != nil {
|
||||||
log.Warn("git for-each-ref error:", result.Error)
|
log.Warn("git for-each-ref error:", result.Error)
|
||||||
return result.Error
|
return result.Error
|
||||||
|
@ -25,6 +25,7 @@ func (repo *Repo) AllCommits() {
|
||||||
newest = strings.TrimSpace(newest)
|
newest = strings.TrimSpace(newest)
|
||||||
tmp := getGitDateStamp(newest)
|
tmp := getGitDateStamp(newest)
|
||||||
repo.Times.NewestCommit = timestamppb.New(tmp)
|
repo.Times.NewestCommit = timestamppb.New(tmp)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// reload the tags
|
// reload the tags
|
||||||
|
|
Loading…
Reference in New Issue