MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getCoreHooksPath

Function getCoreHooksPath

src/utils/git.ts:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31};
32
33export const getCoreHooksPath = async (): Promise<string> => {
34 const gitDir = await getGitDir();
35
36 const { stdout } = await execa('git', ['config', 'core.hooksPath'], {
37 cwd: gitDir
38 });
39
40 return stdout;
41};
42
43export const getStagedFiles = async (): Promise<string[]> => {
44 const gitDir = await getGitDir();

Callers

nothing calls this directly

Calls 2

execaFunction · 0.85
getGitDirFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…