{"thread":{"id":"8534","subject":"[PATCH] git-remote show: Also shorten non-fast-forward refs in the 'push' listing","startedAt":"2007-06-09T20:34:16Z","lastAt":"2007-06-09T20:34:16Z","messageCount":1,"participants":["Johannes Sixt"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"44486","messageId":"200706092234.17029.johannes.sixt@telecom.at","threadId":"8534","inReplyTo":null,"subject":"[PATCH] git-remote show: Also shorten non-fast-forward refs in the 'push' listing","fromName":"Johannes Sixt","fromEmail":"johannes.sixt@telecom.at","sentAt":"2007-06-09T20:34:16Z","receivedAt":"2007-06-09T20:34:16Z","isPatch":true,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"'git-remote show remote-name' lists the refs that are pushed to the remote\nby showing the 'Push' line from the config file. But before showing it,\nit shortened 'refs/heads/here:refs/heads/there' to 'here:there'. However,\nif the Push line is prefixed with a plus, the ref was not shortened.\n\nSigned-off-by: Johannes Sixt <johannes.sixt@telecom.at>\n---\n git-remote.perl |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/git-remote.perl b/git-remote.perl\nindex 5763799..b59cafd 100755\n--- a/git-remote.perl\n+++ b/git-remote.perl\n@@ -258,6 +258,7 @@ sub show_remote {\n \tif ($info->{'PUSH'}) {\n \t\tmy @pushed = map {\n \t\t\ts|^refs/heads/||;\n+\t\t\ts|^\\+refs/heads/|+|;\n \t\t\ts|:refs/heads/|:|;\n \t\t\t$_;\n \t\t} @{$info->{'PUSH'}};\n-- \n1.5.2\n"}]}