diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2011-10-01 20:09:36 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-03 22:15:32 +0400 |
commit | 1062141928aaa1d272be8ce007d371168e8daef6 (patch) | |
tree | ffdfe54831539ce4218798c22e1b6d621f32857f /bundle.c | |
parent | 5be7859962585589f374f8467f3252bfcfa10fd0 (diff) |
checkout: use leak_pending flag
Instead of going through all the references again when we clear the
commit marks, do it like bisect and bundle and gain ownership of the
list of pending objects which we constructed from those references.
We simply copy the struct object_array that points to the list, set
the flag leak_pending and then prepare_revision_walk won't destroy
it and it's ours. We use it to clear the marks and free it at the
end.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bundle.c')
0 files changed, 0 insertions, 0 deletions