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

Method shiftLines

pkg/gitdiff/parser.go:122–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122func (p *parser) shiftLines() (err error) {
123 for i := 0; i < len(p.lines)-1; i++ {
124 p.lines[i] = p.lines[i+1]
125 }
126 p.lines[len(p.lines)-1], err = p.r.ReadString('\n')
127 return
128}
129
130// Line returns a line from the parser without advancing it. A delta of 0
131// returns the current line, while higher deltas return read-ahead lines. It

Callers 1

NextMethod · 0.95

Calls 1

ReadStringMethod · 0.80

Tested by

no test coverage detected