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

Method NoEOL

pkg/gitdiff/gitdiff.go:177–179  ·  view source on GitHub ↗

NoEOL returns true if the line is missing a trailing newline character.

()

Source from the content-addressed store, hash-verified

175
176// NoEOL returns true if the line is missing a trailing newline character.
177func (fl Line) NoEOL() bool {
178 return len(fl.Line) == 0 || fl.Line[len(fl.Line)-1] != '\n'
179}
180
181// LineOp describes the type of a text fragment line: context, added, or removed.
182type LineOp int

Callers 1

FormatTextFragmentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected