startGitProcess function
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,
),
);