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

Function getGitDir

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

Source from the content-addressed store, hash-verified

128};
129
130export const getGitDir = async (): Promise<string> => {
131 const { stdout: gitDir } = await execa('git', [
132 'rev-parse',
133 '--show-toplevel'
134 ]);
135
136 return gitDir;
137};

Callers 6

getOpenCommitIgnoreFunction · 0.70
getCoreHooksPathFunction · 0.70
getStagedFilesFunction · 0.70
getChangedFilesFunction · 0.70
gitAddFunction · 0.70
getDiffFunction · 0.70

Calls 1

execaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…