revision.c: put promisor option in specialized struct

Put the allow_exclude_promisor_objects flag in setup_revision_opt. When
it was in rev_info, it was unclear when it was used, since rev_info is
passed to functions that don't use the flag. This resulted in
unnecessary setting of the flag in prune.c, so fix that as well.

Signed-off-by: Matthew DeVore <matvore@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Matthew DeVore
2018-12-03 14:10:19 -08:00
committed by Junio C Hamano
parent 669b1d2aae
commit bbcde41a70
5 changed files with 16 additions and 11 deletions

View File

@ -124,7 +124,6 @@ struct rev_info {
tree_blobs_in_commit_order:1,
/* for internal use only */
allow_exclude_promisor_objects_opt:1,
exclude_promisor_objects:1;
/* Diff flags */
@ -245,7 +244,8 @@ struct setup_revision_opt {
const char *def;
void (*tweak)(struct rev_info *, struct setup_revision_opt *);
const char *submodule;
int assume_dashdash;
unsigned int assume_dashdash:1,
allow_exclude_promisor_objects:1;
unsigned revarg_opt;
};