added direct and indirect commands
This commit is contained in:
parent
cf129c2545
commit
5df3c66a85
8 changed files with 202 additions and 9 deletions
|
@ -121,6 +121,9 @@ isDirect :: Annex Bool
|
|||
isDirect = fromMaybe False . Git.Config.isTrue <$>
|
||||
getConfig (annexConfig "direct") ""
|
||||
|
||||
setDirect :: Bool -> Annex ()
|
||||
setDirect b = setConfig (annexConfig "direct") (if b then "true" else "false")
|
||||
|
||||
{- Gets annex.httpheaders or annex.httpheaders-command setting,
|
||||
- splitting it into lines. -}
|
||||
getHttpHeaders :: Annex [String]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue