git-lfs/config
brian m. carlson 4fd69115c0
config: improve lookup of committer name and email
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.
2018-10-11 19:59:58 +00:00
..
config_test.go config: improve lookup of committer name and email 2018-10-11 19:59:58 +00:00
config.go config: improve lookup of committer name and email 2018-10-11 19:59:58 +00:00
delayed_environment.go config: change gitEnvironment -> delayedEnvironment, use it in tests 2017-10-18 14:46:21 -06:00
environment_test.go config/environment_test: use last value in gitconfig 2017-04-14 13:44:43 -04:00
environment.go add some godocs 2017-10-27 14:10:46 -06:00
extension_test.go lfs: use github.com/stretchr/testify for assertions 2016-05-25 10:43:10 -06:00
extension.go Major refactor to pull things into config, httputil, tools 2016-05-13 17:38:06 +01:00
fetcher.go all: expand config.Environment interface to support multiple values per key 2017-04-12 17:29:11 -04:00
git_fetcher.go config/git_fetcher.go: mark 'lfs.allowincompletepush' as safe 2018-07-06 10:31:12 -05:00
map_fetcher.go config,lfsapi: return last element of gitconfig, not first 2017-04-14 13:33:13 -04:00
netrc_nix.go config: rename netrc files 2017-10-18 14:51:24 -06:00
netrc_windows.go config: rename netrc files 2017-10-18 14:51:24 -06:00
netrc.go *: use patched version of bgetnry/go-netrc 2018-05-25 12:42:02 -07:00
os_fetcher.go all: expand config.Environment interface to support multiple values per key 2017-04-12 17:29:11 -04:00
url_config_test.go support lfs.<url>.* values where url does not include .git 2017-05-01 15:09:41 -06:00
url_config.go config: introduce static Bool() and Int() helpers 2017-10-27 10:29:14 -06:00
util_nix.go config: add a umask lookup function 2018-10-09 15:11:17 +00:00
util_windows.go config: add a umask lookup function 2018-10-09 15:11:17 +00:00
version.go release: v2.5.0 2018-07-26 14:04:21 -05:00