( gitDir: string, relativePath: string, content: string )
| 175 | }; |
| 176 | |
| 177 | export const appendRepoFile = ( |
| 178 | gitDir: string, |
| 179 | relativePath: string, |
| 180 | content: string |
| 181 | ): void => { |
| 182 | const filePath = path.resolve(gitDir, relativePath); |
| 183 | mkdirSync(path.dirname(filePath), { recursive: true }); |
| 184 | appendFileSync(filePath, content); |
| 185 | }; |
| 186 | |
| 187 | export const writeGlobalConfig = (homeDir: string, lines: string[]): string => { |
| 188 | const configPath = path.resolve(homeDir, '.opencommit'); |
no outgoing calls
no test coverage detected
searching dependent graphs…