aboutsummaryrefslogtreecommitdiff
path: root/Remote.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-04-26 21:28:49 -0300
committerGravatar Joey Hess <joey@kitenet.net>2014-04-26 21:28:49 -0300
commitc33d03093bb26342972714ac40bb7ea1d5975058 (patch)
treed90f80125a92ac06095988dc48ef957c6a062735 /Remote.hs
parentc7999da69b039829acc3b7da8005224af5bf6ed8 (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.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Remote.hs b/Remote.hs
index da33e195e..06c147506 100644
--- a/Remote.hs
+++ b/Remote.hs
@@ -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.) -}