summaryrefslogtreecommitdiff
path: root/xdiff-interface.c
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2015-09-23 18:11:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-09-23 18:43:08 (GMT)
commitf65f13911afa8dd66d163049d91dbfe2ed73717e (patch)
tree24902dad2964db06127aa71a5bc4c8a1809cb64d /xdiff-interface.c
parent23e714df91cb8d824f6fd0594cd80c8a7dd9b751 (diff)
downloadgit-f65f13911afa8dd66d163049d91dbfe2ed73717e.zip
git-f65f13911afa8dd66d163049d91dbfe2ed73717e.tar.gz
git-f65f13911afa8dd66d163049d91dbfe2ed73717e.tar.bz2
branch: move 'current' check down to the presentation layer
We check if given ref is the current branch in print_ref_list(). Move this check to print_ref_item() where it is checked right before printing. This enables a smooth transition to using ref-filter APIs, as we can later replace the current check while printing to just check for FILTER_REFS_DETACHED instead. 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>
Diffstat (limited to 'xdiff-interface.c')
0 files changed, 0 insertions, 0 deletions