MCPcopy Index your code
hub / github.com/antonmedv/gitmal / String

Method String

pkg/gitdiff/gitdiff.go:226–230  ·  view source on GitHub ↗

String returns a git diff format of this fragment. Due to differences in zlib implementation between Go and Git, encoded binary data in the result will likely differ from what Git produces for the same input. See [File.String] for more details on this format.

()

Source from the content-addressed store, hash-verified

224// will likely differ from what Git produces for the same input. See
225// [File.String] for more details on this format.
226func (f *BinaryFragment) String() string {
227 var diff strings.Builder
228 newFormatter(&diff).FormatBinaryFragment(f)
229 return diff.String()
230}

Callers

nothing calls this directly

Calls 3

newFormatterFunction · 0.85
FormatBinaryFragmentMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected