summaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-09-08 15:19:14 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-09-08 15:19:14 -0400
commit8bb2e27dca0a81da54e0ae2a44a8844d5861e8e0 (patch)
tree4b55618b3a4ac2756f39f16d0cc3ca3021f3633a /Config.hs
parenteaffb01ca5db31f8e1f8f04c4fa90d64e0b7bc6a (diff)
ignore gcrypt remotes w/o an annex-uuid
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Config.hs b/Config.hs
index c37481ead..1e4d6caec 100644
--- a/Config.hs
+++ b/Config.hs
@@ -25,6 +25,9 @@ instance Show ConfigKey where
getConfig :: ConfigKey -> String -> Annex String
getConfig (ConfigKey key) def = fromRepo $ Git.Config.get key def
+getConfigMaybe :: ConfigKey -> Annex (Maybe String)
+getConfigMaybe (ConfigKey key) = fromRepo $ Git.Config.getMaybe key
+
{- Changes a git config setting in both internal state and .git/config -}
setConfig :: ConfigKey -> String -> Annex ()
setConfig (ConfigKey key) value = do