trust setting improvements

This commit is contained in:
Joey Hess 2011-01-26 16:20:28 -04:00
parent 7b2da21ab7
commit 7f6af79232
8 changed files with 47 additions and 35 deletions

View file

@ -21,11 +21,11 @@ command = [Command "trust" (paramRepeating paramRemote) seek
seek :: [CommandSeek]
seek = [withString start]
{- Marks a remote as trusted. -}
start :: CommandStartString
start name = do
r <- Remotes.byName name
showStart "trust" name
Remotes.readConfigs
r <- Remotes.byName name
return $ Just $ perform r
perform :: Git.Repo -> CommandPerform