diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-09-09 08:19:45 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-12 11:46:31 -0700 |
commit | f537cfa7501de5e4dcdac55a95515e9a2ff880e3 (patch) | |
tree | 3d91011e03fbee09ef9a94d86c60d238f2f1fa9f /t | |
parent | filter_refs(): build refs list as we go (diff) | |
download | tgif-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')
0 files changed, 0 insertions, 0 deletions