MCPcopy
hub / github.com/git-lfs/git-lfs / prepareScan

Method prepareScan

lfs/diff_index_scanner.go:169–177  ·  view source on GitHub ↗

prepareScan clears out the results from the last Scan() loop, and advances the internal scanner to fetch a new line of Text().

()

Source from the content-addressed store, hash-verified

167// prepareScan clears out the results from the last Scan() loop, and advances
168// the internal scanner to fetch a new line of Text().
169func (s *DiffIndexScanner) prepareScan() bool {
170 s.next, s.err = nil, nil
171 if !s.from.Scan() {
172 s.err = s.from.Err()
173 return false
174 }
175
176 return true
177}
178
179// scan parses the given line and returns a `*DiffIndexEntry` or an error,
180// depending on whether or not the parse was successful.

Callers 1

ScanMethod · 0.95

Calls 2

ScanMethod · 0.65
ErrMethod · 0.65

Tested by

no test coverage detected