summaryrefslogtreecommitdiff
path: root/Seek.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-07-04 02:36:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-07-04 02:36:02 -0400
commit6b3a9cdaddec120f27e947e03ece5ee2ebde1d14 (patch)
tree14ee0b96ed66ba71fe2843f002f4f56f915c9ff5 /Seek.hs
parent8a7785e219c5aa08e0c91a813022e03cb92f16a3 (diff)
moved AssociatedFile definition
Diffstat (limited to 'Seek.hs')
-rw-r--r--Seek.hs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Seek.hs b/Seek.hs
index b90a337e6..817687b45 100644
--- a/Seek.hs
+++ b/Seek.hs
@@ -134,15 +134,15 @@ withNothing _ _ = error "This command takes no parameters."
withKeyOptions :: (Key -> CommandStart) -> CommandSeek -> CommandSeek
withKeyOptions keyop fallbackop params = do
bare <- fromRepo Git.repoIsLocalBare
- all <- Annex.getFlag "all" <||> pure bare
+ allkeys <- Annex.getFlag "all" <||> pure bare
unused <- Annex.getFlag "unused"
auto <- Annex.getState Annex.auto
- case (all , unused, auto ) of
- (True , False , False) -> go loggedKeys
- (False, True , False) -> go unusedKeys
- (True , True , _ ) -> error "Cannot use --all with --unused."
- (False, False , _ ) -> fallbackop params
- (_ , _ , True )
+ case (allkeys , unused, auto ) of
+ (True , False , False) -> go loggedKeys
+ (False , True , False) -> go unusedKeys
+ (True , True , _ ) -> error "Cannot use --all with --unused."
+ (False , False , _ ) -> fallbackop params
+ (_ , _ , True )
| bare -> error "Cannot use --auto in a bare repository."
| otherwise -> error "Cannot use --auto with --all or --unused."
where