MCPcopy Index your code
hub / github.com/go-git/go-git / Files

Method Files

plumbing/format/diff/patch.go:36–36  ·  view source on GitHub ↗

Files returns the from and to Files, with all the necessary metadata about them. If the patch creates a new file, "from" will be nil. If the patch deletes a file, "to" will be nil.

()

Source from the content-addressed store, hash-verified

34 // about them. If the patch creates a new file, "from" will be nil.
35 // If the patch deletes a file, "to" will be nil.
36 Files() (from, to File)
37 // Chunks returns a slice of ordered changes to transform "from" File into
38 // "to" File. If the file is a binary one, Chunks will be empty.
39 Chunks() []Chunk

Callers 15

GrepMethod · 0.65
parentsContainingPathFunction · 0.65
TestAddAndCommitMethod · 0.65
mainFunction · 0.65
filePatchWithContextFunction · 0.65
buildSimilarityMatrixFunction · 0.65
TestFileIterMethod · 0.65
TestFileIterSubmoduleMethod · 0.65
TestFilesMethod · 0.65
TestNoFileFilemodesMethod · 0.65

Implementers 2

textFilePatchplumbing/object/patch.go
testFilePatchplumbing/format/diff/unified_encoder_t

Calls

no outgoing calls

Tested by 7

TestAddAndCommitMethod · 0.52
TestFileIterMethod · 0.52
TestFileIterSubmoduleMethod · 0.52
TestFilesMethod · 0.52
TestNoFileFilemodesMethod · 0.52
TestParseTreeMethod · 0.52