diff options
author | Joey Hess <joey@kitenet.net> | 2014-04-08 13:41:36 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-04-08 13:42:57 -0400 |
commit | 6e47a1412175cbc00f44ea8dc663ad83331cfb6d (patch) | |
tree | ecd8cec02d1a56ea38513cfb893b86504c606a3c /Config.hs | |
parent | 4772321f6a7359f282270c48be0e73563f8d7ae6 (diff) |
cleaned up AnnexState handling in transports
Diffstat (limited to 'Config.hs')
-rw-r--r-- | Config.hs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -32,7 +32,10 @@ getConfigMaybe (ConfigKey key) = fromRepo $ Git.Config.getMaybe key setConfig :: ConfigKey -> String -> Annex () setConfig (ConfigKey key) value = do inRepo $ Git.Command.run [Param "config", Param key, Param value] - Annex.changeGitRepo =<< inRepo Git.Config.reRead + reloadConfig + +reloadConfig :: Annex () +reloadConfig = Annex.changeGitRepo =<< inRepo Git.Config.reRead {- Unsets a git config setting. (Leaves it in state currently.) -} unsetConfig :: ConfigKey -> Annex () |