From: Karthik Nayak Date: Tue, 10 Jan 2017 08:49:38 +0000 (+0530) Subject: ref-filter: move get_head_description() from branch.c X-Git-Tag: v2.13.0-rc0~174^2~16 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d4919bb288e46c81b92d6fe02c4f4564b8477fd3?hp=d4919bb288e46c81b92d6fe02c4f4564b8477fd3 ref-filter: move get_head_description() from branch.c Move the implementation of get_head_description() from branch.c to ref-filter. This gives a description of the HEAD ref if called. This is used as the refname for the HEAD ref whenever the FILTER_REFS_DETACHED_HEAD option is used. Make it public because we need it to calculate the length of the HEAD refs description in branch.c:calc_maxwidth() when we port branch.c to use ref-filter APIs. Mentored-by: Christian Couder Mentored-by: Matthieu Moy Signed-off-by: Karthik Nayak Signed-off-by: Junio C Hamano ---