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:

committed by
Junio C Hamano

parent
669b1d2aae
commit
bbcde41a70
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user