diff options
author | Joey Hess <joey@kitenet.net> | 2014-04-26 21:28:49 -0300 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-04-26 21:28:49 -0300 |
commit | c33d03093bb26342972714ac40bb7ea1d5975058 (patch) | |
tree | d90f80125a92ac06095988dc48ef957c6a062735 /Remote.hs | |
parent | c7999da69b039829acc3b7da8005224af5bf6ed8 (diff) |
Simplified repository description line format. The remote name, if any, is always in square brackets after the description.
Diffstat (limited to 'Remote.hs')
-rw-r--r-- | Remote.hs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -87,9 +87,8 @@ uuidDescriptions = M.unionWith addName <$> uuidMap <*> remoteMap name addName :: String -> RemoteName -> String addName desc n - | desc == n = desc - | null desc = n - | otherwise = n ++ " (" ++ desc ++ ")" + | desc == n || null desc = "[" ++ n ++ "]" + | otherwise = desc ++ " [" ++ n ++ "]" {- When a name is specified, looks up the remote matching that name. - (Or it can be a UUID.) -} |