revision: rename bit to do_not_die_on_missing_objects

The bit `do_not_die_on_missing_tree` is used in revision.h to ensure the
revision walker does not die when encountering a missing tree. This is
currently exclusively set within `builtin/rev-list.c` to ensure the
`--missing` option works with missing trees.

In the upcoming commits, we will extend `--missing` to also support
missing commits. So let's rename the bit to
`do_not_die_on_missing_objects`, which is object type agnostic and can
be used for both trees/commits.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Karthik Nayak
2023-10-26 12:11:07 +02:00
committed by Junio C Hamano
parent 922cc26e41
commit ca556f4707
4 changed files with 12 additions and 11 deletions

View File

@ -212,18 +212,19 @@ struct rev_info {
/*
* Blobs are shown without regard for their existence.
* But not so for trees: unless exclude_promisor_objects
* But not so for trees/commits: unless exclude_promisor_objects
* is set and the tree in question is a promisor object;
* OR ignore_missing_links is set, the revision walker
* dies with a "bad tree object HASH" message when
* encountering a missing tree. For callers that can
* handle missing trees and want them to be filterable
* dies with a "bad <type> object HASH" message when
* encountering a missing object. For callers that can
* handle missing trees/commits and want them to be filterable
* and showable, set this to true. The revision walker
* will filter and show such a missing tree as usual,
* but will not attempt to recurse into this tree
* object.
* will filter and show such a missing object as usual,
* but will not attempt to recurse into this tree/commit
* object. The revision walker will also set the MISSING
* flag for such objects.
*/
do_not_die_on_missing_tree:1,
do_not_die_on_missing_objects:1,
/* for internal use only */
exclude_promisor_objects:1;