( message: string[], files: string[], customArgs: string[] )
| 15 | import { configurationErrorTask } from './task'; |
| 16 | |
| 17 | export function commitTask( |
| 18 | message: string[], |
| 19 | files: string[], |
| 20 | customArgs: string[] |
| 21 | ): StringTask<CommitResult> { |
| 22 | const commands: string[] = [ |
| 23 | '-c', |
| 24 | 'core.abbrev=40', |
| 25 | 'commit', |
| 26 | ...prefixedArray(message, '-m'), |
| 27 | ...files, |
| 28 | ...customArgs, |
| 29 | ]; |
| 30 | |
| 31 | return { |
| 32 | commands, |
| 33 | format: 'utf-8', |
| 34 | parser: parseCommitResult, |
| 35 | }; |
| 36 | } |
| 37 | |
| 38 | export default function (): Pick<SimpleGit, 'commit'> { |
| 39 | return { |
no test coverage detected