diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-09-19 13:05:43 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-09-19 13:05:43 -0400 |
commit | c1cfb595d426ebbad6b9778d03ecaef544df776b (patch) | |
tree | cbd69743deae06bd805ddb654f5b3ecea312ffd0 /Config.hs | |
parent | d1f97163ff320c21676528f70213112591ed38dd (diff) |
configuration and docs for tracking exports
Not yet handled by sync or assistant.
This commit was sponsored by Nick Daly on Patreon.
Diffstat (limited to 'Config.hs')
-rw-r--r-- | Config.hs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -18,6 +18,7 @@ import Config.Cost import Config.DynamicConfig import Types.Availability import Git.Types +import qualified Types.Remote as Remote type UnqualifiedConfigKey = String data ConfigKey = ConfigKey String @@ -55,6 +56,9 @@ instance RemoteNameable Git.Repo where instance RemoteNameable RemoteName where getRemoteName = id +instance RemoteNameable Remote where + getRemoteName = Remote.name + {- A per-remote config setting in git config. -} remoteConfig :: RemoteNameable r => r -> UnqualifiedConfigKey -> ConfigKey remoteConfig r key = ConfigKey $ |