diff options
author | Joey Hess <joey@kitenet.net> | 2013-04-03 17:01:40 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-04-03 17:01:40 -0400 |
commit | f768f16999d997077be98c0d8eabd3d85fd8caa5 (patch) | |
tree | 40ff7020f523d3eb67f344a983af4a6d7c0aca26 /Remote.hs | |
parent | 6543d5406c64bb00a58e74305ec9ca09a49faf0b (diff) |
detect when unwanted remote is empty and remove it
Needs fixes to build when the webapp is disabled.
Diffstat (limited to 'Remote.hs')
-rw-r--r-- | Remote.hs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -28,6 +28,7 @@ module Remote ( byCost, prettyPrintUUIDs, prettyListUUIDs, + prettyUUID, remoteFromUUID, remotesWithUUID, remotesWithoutUUID, @@ -159,6 +160,10 @@ prettyListUUIDs uuids = do where n = finddescription m u +{- Nice display of a remote's name and/or description. -} +prettyUUID :: UUID -> Annex String +prettyUUID u = concat <$> prettyListUUIDs [u] + {- Gets the remote associated with a UUID. - There's no associated remote when this is the UUID of the local repo. -} remoteFromUUID :: UUID -> Annex (Maybe Remote) |