(files, { cwd, dryRun })
| 6 | * @returns {Promise<any>} |
| 7 | */ |
| 8 | export async function gitAdd(files, { cwd, dryRun }) { |
| 9 | const execArgs = files ? ['add', '--', ...files] : ['add', '.']; |
| 10 | return execAsyncPiped('git', execArgs, { cwd }, dryRun); |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * @param {String} commitMsg |
no test coverage detected