diff options
author | Joey Hess <joey@kitenet.net> | 2010-12-30 14:19:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-30 14:19:16 -0400 |
commit | 6a5be9d53cad9ee2988c6d54001f387dfe1f2716 (patch) | |
tree | bae7346474d2ae932b856f1d70a0fca187ca6454 /Command/Unannex.hs | |
parent | 14d59b40fb4f3a4c9a89266fecae91a0daf08088 (diff) |
rename some stuff and prepare to break out more into Command/*
Diffstat (limited to 'Command/Unannex.hs')
-rw-r--r-- | Command/Unannex.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Command/Unannex.hs b/Command/Unannex.hs index 9580fc5e7..42354b8c4 100644 --- a/Command/Unannex.hs +++ b/Command/Unannex.hs @@ -20,16 +20,16 @@ import Core import qualified GitRepo as Git import Messages -seek :: [SubCmdSeek] +seek :: [CommandSeek] seek = [withFilesInGit start] {- The unannex subcommand undoes an add. -} -start :: SubCmdStartString +start :: CommandStartString start file = isAnnexed file $ \(key, backend) -> do showStart "unannex" file return $ Just $ perform file key backend -perform :: FilePath -> Key -> Backend -> SubCmdPerform +perform :: FilePath -> Key -> Backend -> CommandPerform perform file key backend = do -- force backend to always remove ok <- Backend.removeKey backend key (Just 0) @@ -37,7 +37,7 @@ perform file key backend = do then return $ Just $ cleanup file key else return Nothing -cleanup :: FilePath -> Key -> SubCmdCleanup +cleanup :: FilePath -> Key -> CommandCleanup cleanup file key = do g <- Annex.gitRepo |