()
| 31 | }; |
| 32 | |
| 33 | export const getCoreHooksPath = async (): Promise<string> => { |
| 34 | const gitDir = await getGitDir(); |
| 35 | |
| 36 | const { stdout } = await execa('git', ['config', 'core.hooksPath'], { |
| 37 | cwd: gitDir |
| 38 | }); |
| 39 | |
| 40 | return stdout; |
| 41 | }; |
| 42 | |
| 43 | export const getStagedFiles = async (): Promise<string[]> => { |
| 44 | const gitDir = await getGitDir(); |