MCPcopy Create free account
hub / github.com/cli/cli / isAdditionLine

Function isAdditionLine

pkg/cmd/pr/diff/diff.go:311–313  ·  view source on GitHub ↗
(l []byte)

Source from the content-addressed store, hash-verified

309}
310
311func isAdditionLine(l []byte) bool {
312 return len(l) > 0 && l[0] == '+'
313}
314
315func isRemovalLine(l []byte) bool {
316 return len(l) > 0 && l[0] == '-'

Callers 1

colorDiffLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected