()
| 17 | // ); |
| 18 | |
| 19 | export 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 | |
| 33 | export const getCoreHooksPath = async (): Promise<string> => { |
| 34 | const gitDir = await getGitDir(); |
no test coverage detected
searching dependent graphs…