git-lfs/commands
Taylor Blau 8ca4fcbade config: eradicate uses of SetAllEnv
The `SetAllEnv` function is one of two functions that allow for mutable
behavior within the `*config.Configuration` type. It is desirable for us to
remove that function, and all of its uses throughout the LFS codebase.

Unfortunately, a lot of `SetAllEnv` uses are coupled to initializing the
`config.Configuration` instance with custom `.gitconfig` data, a-la
`NewFromValues`. This coupling makes it difficult to write an atomic commit
that *only* removes the usage of `SetAllEnv`.

As a compromise, the signature of `NewFromValues` changed from:

```
func NewFromValues(gitconfig map[string]strimg) *Configuration
```

to...

```
type Values struct {
  Git, Env map[string]string
}

func NewFrom(v Values) *Configuration
```

To support reading fixed data as a part of the `Env` fetcher, a new Fetcher
type was introduced:

```
type mapFetcher map[string]string

func (m mapFetcher) Get(key string) (val string) { ... }
```

and is used in place of the old `*EnvFetcher` to retrieve data from the
"environment".
2016-08-03 17:55:39 -06:00
..
command_checkout.go Merge branch 'master' into commands-config 2016-08-01 12:29:37 -06:00
command_clean.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_clone.go use shared include/exclude flag values across all commands 2016-08-02 10:37:16 -06:00
command_env.go rename commands.Config to commands.cfg 2016-07-21 16:37:53 -06:00
command_ext.go rename commands.Config to commands.cfg 2016-07-21 16:37:53 -06:00
command_fetch.go use shared include/exclude flag values across all commands 2016-08-02 10:37:16 -06:00
command_fsck.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_init.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_install.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_lock.go rename commands.Config to commands.cfg 2016-07-21 16:37:53 -06:00
command_locks.go rename commands.Config to commands.cfg 2016-07-21 16:37:53 -06:00
command_logs.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_ls_files.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_pointer.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_pre_push.go rename commands.Config to commands.cfg 2016-07-21 16:37:53 -06:00
command_prune.go rename commands.Config to commands.cfg 2016-07-21 16:37:53 -06:00
command_pull.go use shared include/exclude flag values across all commands 2016-08-02 10:37:16 -06:00
command_push.go rename commands.Config to commands.cfg 2016-07-21 16:37:53 -06:00
command_smudge.go a few more config.Config references in the commands pkg 2016-07-21 17:18:48 -06:00
command_status.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_track.go commands/track: clarify verbose log messages 2016-07-06 08:56:19 -06:00
command_uninit.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_uninstall.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_unlock.go a few more config.Config references in the commands pkg 2016-07-21 17:18:48 -06:00
command_untrack.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_update.go command_update no longer needs the config package 2016-07-21 17:37:01 -06:00
command_version.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
commands_test.go config: eradicate uses of SetAllEnv 2016-08-03 17:55:39 -06:00
commands.go use shared include/exclude flag values across all commands 2016-08-02 10:37:16 -06:00
uploader.go Refactor StringSet into tools package 2016-07-13 14:28:52 +01:00