Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ isAdditionLine
Function
isAdditionLine
pkg/cmd/pr/diff/diff.go:314–316 ·
view source on GitHub ↗
(l []byte)
Source
from the content-addressed store, hash-verified
312
}
313
314
func
isAdditionLine(l []byte) bool {
315
return
len(l) > 0 && l[0] ==
'+'
316
}
317
318
func
isRemovalLine(l []byte) bool {
319
return
len(l) > 0 && l[0] ==
'-'
Callers
1
colorDiffLines
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected