GitCommandRunner typedef

GitCommandRunner = Future<ProcessResult> Function(List<String> arguments, {String? workingDirectory})

Pluggable command runner used to invoke git. Tests can swap this for a stub that records arguments without spawning a subprocess.

Implementation

typedef GitCommandRunner =
    Future<ProcessResult> Function(
      List<String> arguments, {
      String? workingDirectory,
    });