MCPcopy Create free account
hub / github.com/go-git/go-git / newLine

Function newLine

blame.go:139–147  ·  view source on GitHub ↗
(author, authorName, text string, date time.Time, hash plumbing.Hash)

Source from the content-addressed store, hash-verified

137}
138
139func 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
149func newLines(contents []string, commits []*object.Commit) ([]*Line, error) {
150 result := make([]*Line, 0, len(contents))

Callers 1

newLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected