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

Method Old

pkg/gitdiff/gitdiff.go:167–169  ·  view source on GitHub ↗

Old returns true if the line appears in the old content of the fragment.

()

Source from the content-addressed store, hash-verified

165
166// Old returns true if the line appears in the old content of the fragment.
167func (fl Line) Old() bool {
168 return fl.Op == OpContext || fl.Op == OpDelete
169}
170
171// New returns true if the line appears in the new content of the fragment.
172func (fl Line) New() bool {

Callers 2

ApplyFragmentMethod · 0.80
applyTextLineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected