diff options
author | Joey Hess <joey@kitenet.net> | 2011-10-31 16:46:51 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-10-31 17:22:55 -0400 |
commit | 3d2a9f84051e9dc705ba4bb4828af691e479ae0e (patch) | |
tree | f99ff17d8fa860d1dcf2c8ebd8552e1e80bda8b3 /Command/Describe.hs | |
parent | 00988bcf369671bdc3b78e95e3c2ae43f4835b1c (diff) |
cleanup
Diffstat (limited to 'Command/Describe.hs')
-rw-r--r-- | Command/Describe.hs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Command/Describe.hs b/Command/Describe.hs index 882a0e1bb..1cc81bcbd 100644 --- a/Command/Describe.hs +++ b/Command/Describe.hs @@ -20,15 +20,11 @@ seek :: [CommandSeek] seek = [withWords start] start :: [String] -> CommandStart -start ws = do - let (name, description) = - case ws of - (n:d) -> (n,unwords d) - _ -> error "Specify a repository and a description." - +start (name:description) = do showStart "describe" name u <- Remote.nameToUUID name - next $ perform u description + next $ perform u $ unwords description +start _ = do error "Specify a repository and a description." perform :: UUID -> String -> CommandPerform perform u description = do |