Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cli/cli
/ isAdditionLine
Function
isAdditionLine
pkg/cmd/pr/diff/diff.go:291–293 ·
view source on GitHub ↗
(l []byte)
Source
from the content-addressed store, hash-verified
289
}
290
291
func
isAdditionLine(l []byte) bool {
292
return
len(l) > 0 && l[0] ==
'+'
293
}
294
295
func
isRemovalLine(l []byte) bool {
296
return
len(l) > 0 && l[0] ==
'-'
Callers
1
colorDiffLines
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected