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

Function getCoreHooksPath

out/cli.cjs:85659–85665  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85657 try {
85658 ig.add(
85659 (0, import_fs3.readFileSync)((0, import_path4.join)(gitDir, ".opencommitignore")).toString().split("\n")
85660 );
85661 } catch (e3) {
85662 }
85663 return ig;
85664};
85665var getCoreHooksPath = async () => {
85666 const gitDir = await getGitDir();
85667 const { stdout } = await execa("git", ["config", "core.hooksPath"], {
85668 cwd: gitDir

Callers 2

getHooksPathFunction · 0.90
getHooksPathFunction · 0.70

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…