Skip to main content

refusal_text

Function refusal_text 

Source
pub fn refusal_text(
    marker: &StartMarker,
    own_executable: &Path,
    environment: &[(OsString, OsString)],
) -> String
Expand description

What: The words a person reads when a cli-git executable stops because it was started as Git. &Path borrows this executable’s path for the message. Why: The message names the executable, the process that started it and how, the Git that process chose when the environment says so, the PATH this process saw, why stopping is right, and every way out.

In TS you’d write (pseudocode):

function refusalText(marker, ownExecutable, environment): string;