MCPcopy Create free account
hub / github.com/antonmedv/gitmal / Header

Method Header

pkg/gitdiff/gitdiff.go:80–84  ·  view source on GitHub ↗

Header returns a git diff header of this fragment. See [File.String] for more details on this format.

()

Source from the content-addressed store, hash-verified

78// Header returns a git diff header of this fragment. See [File.String] for
79// more details on this format.
80func (f *TextFragment) Header() string {
81 var hdr strings.Builder
82 newFormatter(&hdr).FormatTextFragmentHeader(f)
83 return hdr.String()
84}
85
86// Validate checks that the fragment is self-consistent and appliable. Validate
87// returns an error if and only if the fragment is invalid.

Callers 2

previewThemesFunction · 0.80
ParseNextFileHeaderMethod · 0.80

Calls 3

newFormatterFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected