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

Function getHooksPath

out/cli.cjs:86030–86037  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86028
86029// src/commands/githook.ts
86030init_dist2();
86031var import_fs4 = require("fs");
86032var import_promises3 = __toESM(require("fs/promises"), 1);
86033var import_path5 = __toESM(require("path"), 1);
86034var HOOK_NAME = "prepare-commit-msg";
86035var DEFAULT_SYMLINK_URL = import_path5.default.join(".git", "hooks", HOOK_NAME);
86036var getHooksPath = async () => {
86037 try {
86038 const hooksPath = await getCoreHooksPath();
86039 return import_path5.default.join(hooksPath, HOOK_NAME);
86040 } catch (error) {

Callers 3

isHookCalledFunction · 0.70
isHookExistsFunction · 0.70
cli.cjsFile · 0.70

Calls 1

getCoreHooksPathFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…