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

Function isExecutable

__tests__/git-hooks.test.ts:26–29  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

24}
25
26function isExecutable(file: string): boolean {
27 if (process.platform === 'win32') return true; // mode bits not meaningful
28 return (fs.statSync(file).mode & 0o111) !== 0;
29}
30
31describe('git sync hooks', () => {
32 let repo: string;

Callers 1

git-hooks.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected