]> git.ipfire.org Git - thirdparty/git.git/commit - revision.h
revision: add leak_pending flag
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 1 Oct 2011 15:56:08 +0000 (17:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2011 18:04:34 +0000 (11:04 -0700)
commit4a43d374fcbdea26b3596592a497a1c16f90b9e6
tree02309fa81949421e5b2e6a6045c6687f03b31fd8
parent468224e580aeb55bd85b37b86f32baada3d17f1e
revision: add leak_pending flag

The new flag leak_pending in struct rev_info can be used to prevent
prepare_revision_walk from freeing the list of pending objects.  It
will still forget about them, so it really is leaked.  This behaviour
may look weird at first, but it can be useful if the pointer to the
list is saved before calling prepare_revision_walk.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
revision.h