unused --from . checks local repo, for consistency
This commit is contained in:
parent
14ffb5d47b
commit
86c5bd0327
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue