From cd6b62f35e04dd4c214859890784fbed396645e1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 25 Mar 2015 17:06:14 -0400 Subject: --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. --- Command.hs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Command.hs') 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 ) -- cgit v1.2.3