aboutsummaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-12-07 13:17:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-12-07 13:17:13 -0400
commitfe2adaccd1cbf6ba6a4b36dbac9bff7241251a78 (patch)
tree86ed51c3af690a7d65308573aba4f59c62e3b961 /Config.hs
parent6a2f9fc2bc34c8ec229c44db8ee7c06f1709c161 (diff)
annex.direct config setting
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Config.hs b/Config.hs
index 11b5f4c93..4658531cf 100644
--- a/Config.hs
+++ b/Config.hs
@@ -116,6 +116,11 @@ getDiskReserve = fromMaybe megabyte . readSize dataUnits
where
megabyte = 1000000
+{- Gets annex.direct setting. -}
+getDirect :: Annex Bool
+getDirect = fromMaybe False . Git.Config.isTrue <$>
+ getConfig (annexConfig "direct") ""
+
{- Gets annex.httpheaders or annex.httpheaders-command setting,
- splitting it into lines. -}
getHttpHeaders :: Annex [String]