From 9a58cbabc8fb30b181da48191a87ba6520e0fb0c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 27 Jan 2013 22:43:05 +1100 Subject: 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 --- Git/Config.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Git/Config.hs') 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 -- cgit v1.2.3