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

Method IsBinary

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

IsBinary returns true if this patch is representing a binary file.

()

Source from the content-addressed store, hash-verified

30type FilePatch interface {
31 // IsBinary returns true if this patch is representing a binary file.
32 IsBinary() bool
33 // Files returns the from and to Files, with all the necessary metadata
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.

Callers 3

fileContentFunction · 0.65
hashMethod · 0.65
writeFilePatchHeaderMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected