Skip to main content

REPO_LOCAL_GIT_VARS

Constant REPO_LOCAL_GIT_VARS 

Source
pub const REPO_LOCAL_GIT_VARS: &[&str];
Expand description

Git’s own list of repository-local environment variables, as reported by git rev-parse --local-env-vars (15 entries on git 2.55).

Kept as a constant rather than shelled out per call so building a command stays free of process spawns; local_env_vars_match_git asserts it still agrees with the installed git, so a version that adds one fails loudly instead of silently reopening the hole.