Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agegr/pi-web
/ hasNullByte
Function
hasNullByte
lib/git-changes.ts:79–81 ·
view source on GitHub ↗
(content: Buffer)
Source
from the content-addressed store, hash-verified
77
}
78
79
function
hasNullByte(content: Buffer): boolean {
80
return
content.includes(0);
81
}
82
83
function
createAddedFilePatch(gitPath: string, content: string): string {
84
const
hasTrailingNewline = content.endsWith(
"\n"
);
Callers
1
getGitFileDiff
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected