MCPcopy Index your code
hub / github.com/google/codesearch / copyFile

Function copyFile

index/write.go:232–238  ·  view source on GitHub ↗
(dst, src *bufWriter)

Source from the content-addressed store, hash-verified

230}
231
232func copyFile(dst, src *bufWriter) {
233 dst.flush()
234 _, err := io.Copy(dst.file, src.finish())
235 if err != nil {
236 log.Fatalf("copying %s to %s: %v", src.name, dst.name, err)
237 }
238}
239
240// addName adds the file with the given name to the index.
241// It returns the assigned file ID number.

Callers 2

MergeFunction · 0.85
FlushMethod · 0.85

Calls 2

flushMethod · 0.80
finishMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…