aboutsummaryrefslogtreecommitdiff
path: root/bundle.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2011-10-01 18:09:36 +0200
committerJunio C Hamano <gitster@pobox.com>2011-10-03 11:15:32 -0700
commit1062141928aaa1d272be8ce007d371168e8daef6 (patch)
treeffdfe54831539ce4218798c22e1b6d621f32857f /bundle.c
parent5be7859962585589f374f8467f3252bfcfa10fd0 (diff)
downloadgit-1062141928aaa1d272be8ce007d371168e8daef6.tar.gz
git-1062141928aaa1d272be8ce007d371168e8daef6.tar.xz
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