mirror of
https://github.com/taigrr/gico.git
synced 2026-04-01 18:58:59 -07:00
add repo caching for non-chan
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user