commit method

  1. @override
Future<SimpleProcessResult> commit(
  1. String message, {
  2. List<String>? options,
  3. bool? skipOnError,
  4. HandlerFunction? handlerFn,
  5. bool? showOutput,
})
inherited

Commits changes in the current working directory with the supplied message where the message can be either a single string or array of strings to be passed as separate arguments (the git command line interface converts these to be separated by double line breaks)

Implementation

@override
T commit(String message,
        {List<String>? options,
        bool? skipOnError,
        HandlerFunction? handlerFn,
        bool? showOutput}) =>
    runner.run(
        args: ['commit', '-m', message, ...?options],
        showOutput: showOutput,
        handlerFn: handlerFn,
        skipOnError: skipOnError);