MCPcopy
hub / github.com/di-sukharev/opencommit / getOpenCommitIgnore

Function getOpenCommitIgnore

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

Source from the content-addressed store, hash-verified

17// );
18
19export const getOpenCommitIgnore = async (): Promise<Ignore> => {
20 const gitDir = await getGitDir();
21
22 const ig = ignore();
23
24 try {
25 ig.add(
26 readFileSync(join(gitDir, '.opencommitignore')).toString().split('\n')
27 );
28 } catch (e) {}
29
30 return ig;
31};
32
33export const getCoreHooksPath = async (): Promise<string> => {
34 const gitDir = await getGitDir();

Callers 1

getStagedFilesFunction · 0.70

Calls 3

getGitDirFunction · 0.70
addMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…