Function
newLine
(author, authorName, text string, date time.Time, hash plumbing.Hash)
Source from the content-addressed store, hash-verified
| 137 | } |
| 138 | |
| 139 | func newLine(author, authorName, text string, date time.Time, hash plumbing.Hash) *Line { |
| 140 | return &Line{ |
| 141 | Author: author, |
| 142 | AuthorName: authorName, |
| 143 | Text: text, |
| 144 | Hash: hash, |
| 145 | Date: date, |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | func newLines(contents []string, commits []*object.Commit) ([]*Line, error) { |
| 150 | result := make([]*Line, 0, len(contents)) |
Tested by
no test coverage detected