add repo caching for non-chan

This commit is contained in:
2023-02-07 00:27:02 -08:00
parent f5f268dff7
commit c2d04ed3b0
6 changed files with 42 additions and 24 deletions

View File

@@ -10,12 +10,13 @@ func NewDataSet() DataSet {
return make(DataSet)
}
func NewCommit(Author, Message, Repo, Path string, LOC int) Commit {
return Commit{
Message: Message,
Author: Author, LOC: LOC, TimeStamp: time.Now(),
func NewCommit(Author, Message, Repo, Path string, Added, Deleted, FilesChanged int) Commit {
ci := Commit{
Message: Message, Added: Added, Deleted: Deleted,
Author: Author, FilesChanged: FilesChanged, TimeStamp: time.Now(),
Repo: Repo, Path: Path,
}
return ci
}
func (yf Freq) String() string {