4fd69115c0
Git provides several different ways to acquire a committer's name and email. First, it looks for special GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL environment variables. If these are not set, it looks in the configuration, and failing that, acquires the email from the EMAIL environment variable. This last option is especially common among users who share dotfiles across machines as it means there is only one place to modify one's email across all programs. Read these settings in the order that Git reads them, and add tests that check that we read them in the order Git does. Note that unlike Git, we don't query the system for the username and email address. This is not particularly portable across platforms and tends not to contain useful values. If there is a compelling use case in the future, we can add support for it then. |
||
---|---|---|
.. | ||
config_test.go | ||
config.go | ||
delayed_environment.go | ||
environment_test.go | ||
environment.go | ||
extension_test.go | ||
extension.go | ||
fetcher.go | ||
git_fetcher.go | ||
map_fetcher.go | ||
netrc_nix.go | ||
netrc_windows.go | ||
netrc.go | ||
os_fetcher.go | ||
url_config_test.go | ||
url_config.go | ||
util_nix.go | ||
util_windows.go | ||
version.go |