(files: string[], message: string, opts?: { cwd?: string })
| 116 | |
| 117 | /** Stage files and create a commit */ |
| 118 | export function commitFiles(files: string[], message: string, opts?: { cwd?: string }): void { |
| 119 | for (const file of files) { |
| 120 | // Use -- to prevent filenames from being interpreted as flags |
| 121 | runArgs(['git', 'add', '--', file], opts); |
| 122 | } |
| 123 | runArgs(['git', 'commit', '-F', '-'], { ...opts, input: message }); |
| 124 | } |
| 125 | |
| 126 | /** Check if a tag already exists */ |
| 127 | export function tagExists(tag: string, opts?: { cwd?: string }): boolean { |
no test coverage detected
searching dependent graphs…