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 /patch-delta.c | |
parent | 5096e4875303038ffc34af96c28cf2a2b7e103a6 (diff) | |
download | git-f537cfa7501de5e4dcdac55a95515e9a2ff880e3.tar.gz git-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 'patch-delta.c')
0 files changed, 0 insertions, 0 deletions