builtin-remote: fix two inconsistencies in the output of "show <remote>"
commit3bd925636cd11400d1840b39d0d18b640f32bdd2
authorJay Soffian <jaysoffian@gmail.com>
Wed, 25 Feb 2009 08:32:23 +0000 (25 03:32 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Feb 2009 23:19:09 +0000 (27 15:19 -0800)
treeeee7e3bc66561b3eae45e9441fdf7a51c9a8b48e
parentcca7c97e37719eaee1d31cdaf1e638d19ecd69e4
builtin-remote: fix two inconsistencies in the output of "show <remote>"

Remote and stale branches are emitted in alphabetical order, but new and
tracked branches are not. So sort the latter to be consistent with the
former. This also lets us use more efficient string_list_has_string()
instead of unsorted_string_list_has_string().

"show <remote>" prunes symrefs, but "show <remote> -n" does not. Fix the
latter to match the former.

Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-remote.c
t/t5505-remote.sh