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

Function getOpenCommitIgnore

out/cli.cjs:85648–85658  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85646init_dist2();
85647var assertGitRepo = async () => {
85648 try {
85649 await execa("git", ["rev-parse"]);
85650 } catch (error) {
85651 throw new Error(error);
85652 }
85653};
85654var getOpenCommitIgnore = async () => {
85655 const gitDir = await getGitDir();
85656 const ig = (0, import_ignore.default)();
85657 try {
85658 ig.add(
85659 (0, import_fs3.readFileSync)((0, import_path4.join)(gitDir, ".opencommitignore")).toString().split("\n")
85660 );
85661 } catch (e3) {

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…