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

Function isRemovalLine

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

Source from the content-addressed store, hash-verified

316}
317
318func isRemovalLine(l []byte) bool {
319 return len(l) > 0 && l[0] == '-'
320}
321
322func changedFilesNames(w io.Writer, r io.Reader) error {
323 diff, err := io.ReadAll(r)

Callers 1

colorDiffLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected