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

Method New

pkg/gitdiff/gitdiff.go:172–174  ·  view source on GitHub ↗

New returns true if the line appears in the new content of the fragment.

()

Source from the content-addressed store, hash-verified

170
171// New returns true if the line appears in the new content of the fragment.
172func (fl Line) New() bool {
173 return fl.Op == OpContext || fl.Op == OpAdd
174}
175
176// NoEOL returns true if the line is missing a trailing newline character.
177func (fl Line) NoEOL() bool {

Callers 15

createMarkdownFunction · 0.80
previewThemesFunction · 0.80
generateBlobsFunction · 0.80
generateCommitPageFunction · 0.80
postProcessHTMLFunction · 0.80
ValidateMethod · 0.80
applyTextLineFunction · 0.80
apply.goFile · 0.80
ApplyFunction · 0.80
ReadLinesAtMethod · 0.80
readBytesMethod · 0.80
ParsePatchHeaderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected