@matheusbsbs / matheus-bagliano / commits / 6718f1f0d0
Fork 0

git-remote show: Also shorten non-fast-forward refs in the 'push' listing

'git-remote show remote-name' lists the refs that are pushed to the remote by showing the 'Push' line from the config file. But before showing it, it shortened 'refs/heads/here:refs/heads/there' to 'here:there'. However, if the Push line is prefixed with a plus, the ref was not shortened. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Sixt committed Jun 9, 2007 at 22:34 UTC 6718f1f0d07167128c2d23c15081ea5660e865e9
1 file changed +1
git-remote.perl
+1
@@ -258,6 +258,7 @@ sub show_remote {
258 if ($info->{'PUSH'}) {
259 my @pushed = map {
260 s|^refs/heads/||;
261 + s|^\+refs/heads/|+|;
262 s|:refs/heads/|:|;
263 $_;
264 } @{$info->{'PUSH'}};