From 20244ea2d09a3f5c3c83133014ca1e1b7b3d0227 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Wed, 22 Oct 2008 09:39:47 +0200 Subject: git-remote: list branches in vertical lists Previously, branches were listed on a single line in each section. But if there are many branches, then horizontal, line-wrapped lists are very inconvenient to scan for a human. This makes the lists vertical, i.e one branch per line is printed. Since "git remote" is porcelain, we can easily make this backwards-incompatible change. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- t/t5505-remote.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 't') diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index 0103e1a180..c4380c7e32 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -28,7 +28,7 @@ tokens_match () { } check_remote_track () { - actual=$(git remote show "$1" | sed -n -e '$p') && + actual=$(git remote show "$1" | sed -e '1,/Tracked/d') && shift && tokens_match "$*" "$actual" } @@ -115,9 +115,11 @@ cat > test/expect << EOF New remote branch (next fetch will store in remotes/origin) master Tracked remote branches - side master + side + master Local branches pushed with 'git push' - master:upstream +refs/tags/lastbackup + master:upstream + +refs/tags/lastbackup EOF test_expect_success 'show' ' @@ -144,9 +146,11 @@ cat > test/expect << EOF Remote branch merged with 'git pull' while on branch master master Tracked remote branches - master side + master + side Local branches pushed with 'git push' - master:upstream +refs/tags/lastbackup + master:upstream + +refs/tags/lastbackup EOF test_expect_success 'show -n' ' -- cgit v1.2.3