MCPcopy 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
79function hasNullByte(content: Buffer): boolean {
80 return content.includes(0);
81}
82
83function createAddedFilePatch(gitPath: string, content: string): string {
84 const hasTrailingNewline = content.endsWith("\n");

Callers 1

getGitFileDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected