diff options
author | Joey Hess <joey@kitenet.net> | 2012-12-07 13:17:13 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-12-07 13:17:13 -0400 |
commit | fe2adaccd1cbf6ba6a4b36dbac9bff7241251a78 (patch) | |
tree | 86ed51c3af690a7d65308573aba4f59c62e3b961 /Config.hs | |
parent | 6a2f9fc2bc34c8ec229c44db8ee7c06f1709c161 (diff) |
annex.direct config setting
Diffstat (limited to 'Config.hs')
-rw-r--r-- | Config.hs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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] |