gitCommit static method

Future<void> gitCommit({
  1. required String message,
  2. bool allowEmpty = false,
})

Implementation

static Future<void> gitCommit({
  required String message,
  bool allowEmpty = false,
}) =>
    _runProcess(
        'git',
        [
          'commit',
          '-m',
          message,
          if (allowEmpty) '--allow-empty',
        ],
        workingDirectory: Directory.current.path);