MCPcopy Index your code
hub / github.com/rsc/tmp / Apply

Method Apply

patch/apply.go:26–62  ·  view source on GitHub ↗

Apply applies the patch set to the files named in the patch set, constructing an in-memory copy of the new file state. It is the client's job to write the changes to the file system if desired. The function readFile should return the contents of the named file. Typically this function will be io.Re

(readFile func(string) ([]byte, error))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

readFileFunction · 0.85
ApplyMethod · 0.65

Tested by

no test coverage detected