diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-09-23 23:41:09 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-23 11:43:08 -0700 |
commit | f65f13911afa8dd66d163049d91dbfe2ed73717e (patch) | |
tree | 24902dad2964db06127aa71a5bc4c8a1809cb64d /pack-objects.c | |
parent | 23e714df91cb8d824f6fd0594cd80c8a7dd9b751 (diff) | |
download | git-f65f13911afa8dd66d163049d91dbfe2ed73717e.tar.gz git-f65f13911afa8dd66d163049d91dbfe2ed73717e.tar.xz |
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 'pack-objects.c')
0 files changed, 0 insertions, 0 deletions