revision: remove the unused flag leak_pending
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a9a03fa0d7
commit
f1230fb5fc
@ -2850,8 +2850,7 @@ int prepare_revision_walk(struct rev_info *revs)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!revs->leak_pending)
|
object_array_clear(&old_pending);
|
||||||
object_array_clear(&old_pending);
|
|
||||||
|
|
||||||
/* Signal whether we need per-parent treesame decoration */
|
/* Signal whether we need per-parent treesame decoration */
|
||||||
if (revs->simplify_merges ||
|
if (revs->simplify_merges ||
|
||||||
|
12
revision.h
12
revision.h
@ -150,18 +150,6 @@ struct rev_info {
|
|||||||
date_mode_explicit:1,
|
date_mode_explicit:1,
|
||||||
preserve_subject:1;
|
preserve_subject:1;
|
||||||
unsigned int disable_stdin:1;
|
unsigned int disable_stdin:1;
|
||||||
/*
|
|
||||||
* Set `leak_pending` to prevent `prepare_revision_walk()` from clearing
|
|
||||||
* the array of pending objects (`pending`). It will still forget about
|
|
||||||
* the array and its entries, so they really are leaked. This can be
|
|
||||||
* useful if the `struct object_array` `pending` is copied before
|
|
||||||
* calling `prepare_revision_walk()`. By setting `leak_pending`, you
|
|
||||||
* effectively claim ownership of the old array, so you should most
|
|
||||||
* likely call `object_array_clear(&pending_copy)` once you are done.
|
|
||||||
* Observe that this is about ownership of the array and its entries,
|
|
||||||
* not the commits referenced by those entries.
|
|
||||||
*/
|
|
||||||
unsigned int leak_pending:1;
|
|
||||||
/* --show-linear-break */
|
/* --show-linear-break */
|
||||||
unsigned int track_linear:1,
|
unsigned int track_linear:1,
|
||||||
track_first_time:1,
|
track_first_time:1,
|
||||||
|
Loading…
Reference in New Issue
Block a user