add back message

This commit is contained in:
Joey Hess 2011-12-16 16:56:31 -04:00
parent 9e82c348b7
commit 87c1c103ea

View file

@ -26,7 +26,11 @@ start (src:dest:[])
| otherwise = do | otherwise = do
ifAnnexed src ifAnnexed src
(error $ "cannot used annexed file as src: " ++ src) (error $ "cannot used annexed file as src: " ++ src)
(next $ whenAnnexed (perform src) dest) go
where
go = do
showStart "reinject" dest
next $ whenAnnexed (perform src) dest
start _ = error "specify a src file and a dest file" start _ = error "specify a src file and a dest file"
perform :: FilePath -> FilePath -> (Key, Backend Annex) -> CommandPerform perform :: FilePath -> FilePath -> (Key, Backend Annex) -> CommandPerform