summaryrefslogtreecommitdiff
path: root/t/t4013
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2012-09-09 08:19:45 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-09-12 11:46:31 -0700
commitf537cfa7501de5e4dcdac55a95515e9a2ff880e3 (patch)
tree3d91011e03fbee09ef9a94d86c60d238f2f1fa9f /t/t4013
parentfilter_refs(): build refs list as we go (diff)
downloadtgif-f537cfa7501de5e4dcdac55a95515e9a2ff880e3.tar.xz
filter_refs(): simplify logic
Simplify flow within loop: first decide whether to keep the reference, then keep/free it. This makes it clearer that each ref has exactly two possible destinies, and removes duplication of the code for appending the reference to the linked list. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013')
0 files changed, 0 insertions, 0 deletions