git-annex/Config
Joey Hess 71f78fe45d
wip separate RemoteConfig parsing
Remote now contains a ParsedRemoteConfig. The parsing happens when the
Remote is constructed, rather than when individual configs are used.

This is more efficient, and it lets initremote/enableremote
reject configs that have unknown fields or unparsable values.

It also allows for improved type safety, as shown in
Remote.Helper.Encryptable where things that used to match on string
configs now match on data types.

This is a work in progress, it does not build yet.

The main risk in this conversion is forgetting to add a field to
RemoteConfigParser. That will prevent using that field with
initremote/enableremote, and will prevent remotes that already are set
up from seeing that configuration. So will need to check carefully that
every field that getRemoteConfigValue is called on has been added to
RemoteConfigParser.

(One such case I need to remember is that credPairRemoteField needs to be
included in the RemoteConfigParser.)
2020-01-13 12:39:21 -04:00
..
Cost.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
DynamicConfig.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Files.hs Makefile: Added install-home target which installs git-annex into the HOME directory 2019-03-18 12:36:03 -04:00
GitConfig.hs git-annex config annex.largefiles 2019-12-20 13:01:41 -04:00
RemoteConfig.hs wip separate RemoteConfig parsing 2020-01-13 12:39:21 -04:00
Smudge.hs include git-annex-shell back in 2019-12-02 11:51:52 -04:00