MCPcopy
hub / github.com/go-git/go-git / splitLines

Function splitLines

plumbing/format/diff/unified_encoder.go:304–310  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

302}
303
304func splitLines(s string) []string {
305 out := splitLinesRegexp.FindAllString(s, -1)
306 if out[len(out)-1] == "" {
307 out = out[:len(out)-1]
308 }
309 return out
310}
311
312type hunk struct {
313 fromLine int

Callers 1

GenerateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…