pub fn convert_action(
arguments: &ConvertArguments,
cwd: &Path,
environment: &[(OsString, OsString)],
real_git: Option<&Path>,
) -> ActionExpand description
What:
The action of the command: help, a refusal, or the run on the real platform with progress on standard error.
Why:
The command reads .git itself and calls the filesystem, and starts no Git. It still needs to know which Git the wrapper
forwards to (real_git, resolved by the caller), because where that Git reads its system files from is a fact only that
Git reports, and the wrapper’s own environment does not name it.
In TS you’d write (pseudocode):
function convertAction(arguments: ConvertArguments, cwd: string, environment: [string, string][], realGit?: string): Action;