diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2017-01-10 14:19:38 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-10 12:44:31 -0800 |
commit | d4919bb288e46c81b92d6fe02c4f4564b8477fd3 (patch) | |
tree | 63c8b3945d12e52bf4ab98ce37c173bad669a299 /fsck.c | |
parent | ref-filter: modify "%(objectname:short)" to take length (diff) | |
download | tgif-d4919bb288e46c81b92d6fe02c4f4564b8477fd3.tar.xz |
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 <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>
Diffstat (limited to 'fsck.c')
0 files changed, 0 insertions, 0 deletions