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>
This commit is contained in:

committed by
Junio C Hamano

parent
cca7c97e37
commit
3bd925636c
@ -141,8 +141,8 @@ cat > test/expect << EOF
|
||||
New remote branch (next fetch will store in remotes/origin)
|
||||
master
|
||||
Tracked remote branches
|
||||
side
|
||||
master
|
||||
side
|
||||
Local branches pushed with 'git push'
|
||||
master:upstream
|
||||
+refs/tags/lastbackup
|
||||
|
Reference in New Issue
Block a user