MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isEffectivelyEmpty

Function isEffectivelyEmpty

src/sync/git-hooks.ts:105–110  ·  view source on GitHub ↗

Whether a hook body is just a shebang / blank lines (i.e. only ever ours).

(content: string)

Source from the content-addressed store, hash-verified

103
104/** Whether a hook body is just a shebang / blank lines (i.e. only ever ours). */
105function isEffectivelyEmpty(content: string): boolean {
106 return content
107 .split('\n')
108 .map((l) => l.trim())
109 .every((l) => l.length === 0 || l.startsWith('#!'));
110}
111
112function chmodExecutable(file: string): void {
113 try {

Callers 1

removeGitSyncHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected