summaryrefslogtreecommitdiff
path: root/Git/Config.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-01-27 22:43:05 +1100
committerGravatar Joey Hess <joey@kitenet.net>2013-01-27 22:43:05 +1100
commit9a58cbabc8fb30b181da48191a87ba6520e0fb0c (patch)
treeb64107b98ecc0d779291cad90fada13d0f6f4bf6 /Git/Config.hs
parent3bd8fba2db932b7730ba497d60030db6ee6f6405 (diff)
annex.autocommit
New setting, can be used to disable autocommit of changed files by the assistant, while it still does data syncing and other tasks. Also wired into webapp UI
Diffstat (limited to 'Git/Config.hs')
-rw-r--r--Git/Config.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Git/Config.hs b/Git/Config.hs
index 52a9dafb5..adc75a208 100644
--- a/Git/Config.hs
+++ b/Git/Config.hs
@@ -147,5 +147,9 @@ isTrue s
where
s' = map toLower s
+boolConfig :: Bool -> String
+boolConfig True = "true"
+boolConfig False = "false"
+
isBare :: Repo -> Bool
isBare r = fromMaybe False $ isTrue =<< getMaybe "core.bare" r