unused --from . checks local repo, for consistency

This commit is contained in:
Joey Hess 2011-05-28 22:37:17 -04:00
parent 14ffb5d47b
commit 86c5bd0327

View file

@ -37,13 +37,12 @@ seek = [withNothing start]
start :: CommandStartNothing start :: CommandStartNothing
start = notBareRepo $ do start = notBareRepo $ do
from <- Annex.getState Annex.fromremote from <- Annex.getState Annex.fromremote
case from of let (name, action) = case from of
Nothing -> pass "." checkUnused Nothing -> (".", checkUnused)
Just n -> pass n $ checkRemoteUnused n Just "." -> (".", checkUnused)
where Just n -> (n, checkRemoteUnused n)
pass n a = do showStart "unused" name
showStart "unused" n next action
next a
checkUnused :: CommandPerform checkUnused :: CommandPerform
checkUnused = do checkUnused = do