format-patch: refactor branch name calculation
commit427a8ec5e75f4450620e5df3e1f1071f48c7772c
authorFelipe Contreras <felipe.contreras@gmail.com>
Sun, 7 Apr 2013 17:46:21 +0000 (7 12:46 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Apr 2013 20:33:45 +0000 (7 13:33 -0700)
treeac28485ee79e6a65995b5784fec1c0738180f2a4
parent80d35ca0aaeca654562974be6ea528e22bc76e8c
format-patch: refactor branch name calculation

By moving the part that relies on rev->pending earlier, where we are
already checking the special case where there's only one ref.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c