summaryrefslogtreecommitdiff
path: root/Command.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2015-03-25 17:06:14 -0400
committerJoey Hess <joeyh@joeyh.name>2015-03-25 17:06:14 -0400
commitcd6b62f35e04dd4c214859890784fbed396645e1 (patch)
treed1526419c578af997a08fa71c8bf08b077f304a9 /Command.hs
parent59e0df02ecfb2622d1d075ba48ad53baf51d9350 (diff)
--auto is no longer a global option; only get, drop, and copy accept it.
Not a behavior change unless you were passing it to a command that ignored it.
Diffstat (limited to 'Command.hs')
-rw-r--r--Command.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/Command.hs b/Command.hs
index fd12991a41..35034a494c 100644
--- a/Command.hs
+++ b/Command.hs
@@ -17,13 +17,11 @@ module Command (
whenAnnexed,
ifAnnexed,
isBareRepo,
- checkAuto,
module ReExported
) where
import Common.Annex
import qualified Backend
-import qualified Annex
import qualified Git
import Types.Command as ReExported
import Types.Option as ReExported
@@ -79,7 +77,3 @@ ifAnnexed file yes no = maybe no yes =<< Backend.lookupFile file
isBareRepo :: Annex Bool
isBareRepo = fromRepo Git.repoIsLocalBare
-
-checkAuto :: Annex Bool -> Annex Bool
-checkAuto checker = ifM (Annex.getState Annex.auto)
- ( checker , return True )