Skip to main content

STARTED_AS_GIT_VARIABLE

Constant STARTED_AS_GIT_VARIABLE 

Source
pub const STARTED_AS_GIT_VARIABLE: &str = "CLI_GIT_STARTED_AS_GIT";
Expand description

What: The name of the marker variable. &str is a borrowed text baked into the program (owned sibling: String). Why: Every start of the real Git sets it, and every wrapper start reads it.

In TS you’d write (pseudocode):

const STARTED_AS_GIT_VARIABLE = 'CLI_GIT_STARTED_AS_GIT';