Skip to main content

Module git_config

Module git_config 

Source
Expand description

Default identity lookup for prompts.

Uses libgit2’s configuration stack with the usual precedence: the repository’s .git/config, then ~/.gitconfig / $XDG_CONFIG_HOME/git/config, then the system config, including [include] files. Environment overrides that only the git CLI understands (GIT_CONFIG_GLOBAL, GIT_CONFIG_COUNT, …) are not applied.

Functions§

get_git_user_email
user.email as Git would resolve it for repo_path (or globally).
get_git_user_name
user.name as Git would resolve it for repo_path (or globally).