aboutsummaryrefslogtreecommitdiffstats
path: root/revision.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-02-15 15:18:11 -0800
committerJunio C Hamano <gitster@pobox.com>2018-02-15 15:18:11 -0800
commite17cec27d18c730dae738684d2f5df1dbd54a804 (patch)
tree3207a54751b246c7b3ecd71c9858cf6ac0bffda0 /revision.h
parent04afcc2201ddb399031484eb9769393bade2529d (diff)
parent6fcec2f9aeeac6329ecf2f7084173f5b4346588b (diff)
downloadgit-e17cec27d18c730dae738684d2f5df1dbd54a804.tar.gz
Merge branch 'rs/lose-leak-pending' into maint
API clean-up around revision traversal. * rs/lose-leak-pending: commit: remove unused function clear_commit_marks_for_object_array() revision: remove the unused flag leak_pending checkout: avoid using the rev_info flag leak_pending bundle: avoid using the rev_info flag leak_pending bisect: avoid using the rev_info flag leak_pending object: add clear_commit_marks_all() ref-filter: use clear_commit_marks_many() in do_merge_filter() commit: use clear_commit_marks_many() in remove_redundant() commit: avoid allocation in clear_commit_marks_many()
Diffstat (limited to 'revision.h')
-rw-r--r--revision.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/revision.h b/revision.h
index 19dc9bdddb..d7a35c8c9e 100644
--- a/revision.h
+++ b/revision.h
@@ -151,18 +151,6 @@ struct rev_info {
date_mode_explicit:1,
preserve_subject: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 */
unsigned int track_linear:1,
track_first_time:1,