OSDN Git Service

branch: bump get_head_description() to the top
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 23 Sep 2015 18:11:07 +0000 (23:41 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Sep 2015 18:41:19 +0000 (11:41 -0700)
commit2dad24a5c39bb26a815c35c5db7a35499bad48e1
treed39aa2c45e392429668c9d9f17d6969065475b60
parent1051e40dba16bd8e490c41ce926c8c36b913de72
branch: bump get_head_description() to the top

This is a preperatory patch for 'roll show_detached HEAD into regular
ref_list'. This patch moves get_head_description() to the top so that
it can be used in print_ref_item().

Based-on-patch-by: Jeff King <peff@peff.net>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c