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

Method String

pkg/gitdiff/gitdiff.go:45–49  ·  view source on GitHub ↗

String returns a git diff representation of this file. The value can be parsed by this library to obtain the same File, but may not be the same as the original input.

()

Source from the content-addressed store, hash-verified

43// parsed by this library to obtain the same File, but may not be the same as
44// the original input.
45func (f *File) String() string {
46 var diff strings.Builder
47 newFormatter(&diff).FormatFile(f)
48 return diff.String()
49}
50
51// TextFragment describes changed lines starting at a specific line in a text file.
52type TextFragment struct {

Callers 13

StringMethod · 0.45
HeaderMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
TestFormatRoundtripFunction · 0.45
MessageMethod · 0.45
scanMessageTitleFunction · 0.45
scanMessageBodyFunction · 0.45
FormatTextFragmentMethod · 0.45
ParseNextFileHeaderMethod · 0.45
cleanNameFunction · 0.45

Calls 2

newFormatterFunction · 0.85
FormatFileMethod · 0.80

Tested by 2

TestFormatRoundtripFunction · 0.36