show-branch: use QSORT
commit7e65c75c31de751f58945a22e91e120c10ab6e87
authorRené Scharfe <l.s.r@web.de>
Sat, 1 Oct 2016 16:19:48 +0000 (1 18:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2016 19:46:47 +0000 (3 12:46 -0700)
treea422c99131c99bd8ccf5f45dcf95bc17bc5aa3b6
parent1b5294de406146c4ec321a59e07a5566c435cc2e
show-branch: use QSORT

Shorten the code by using QSORT instead of calling qsort(3) directly,
as the former determines the element size automatically and checks if
there are at least two elements to sort already.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/show-branch.c