pub fn executable_names(
platform: Platform,
path_extensions: &OsStr,
) -> Vec<OsString>Expand description
What:
List the file names PATH lookup tries,
in order.
Why:
Unix runs git;
Windows tries git plus each PATHEXT extension,
adding a
missing leading dot.
An extension that is not UTF-8 cannot name a file
portably and is skipped.
In TS you’d write (pseudocode):
function executableNames(platform: Platform, pathExtensions: string): string[];