startGitProcess function

Future<GitProcess> startGitProcess(
  1. String executable,
  2. List<String> arguments, {
  3. String? workingDirectory,
  4. required Map<String, String> environment,
})

The default GitProcessStarter: Process.start without the parent's environment. Its GitProcess.kill stops the process and its children: taskkill /T /F on Windows, and pkill -KILL -P before the process itself on POSIX systems.

Implementation

Future<GitProcess> startGitProcess(
  String executable,
  List<String> arguments, {
  String? workingDirectory,
  required Map<String, String> environment,
}) async => _LocalGitProcess(
  await Process.start(
    executable,
    arguments,
    workingDirectory: workingDirectory,
    environment: environment,
    includeParentEnvironment: false,
  ),
);