Merge branch 'md/exclude-promisor-objects-fix-cleanup'
Code clean-up. * md/exclude-promisor-objects-fix-cleanup: revision.c: put promisor option in specialized struct
This commit is contained in:
@ -361,6 +361,9 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
|
||||
{
|
||||
struct rev_info revs;
|
||||
struct rev_list_info info;
|
||||
struct setup_revision_opt s_r_opt = {
|
||||
.allow_exclude_promisor_objects = 1,
|
||||
};
|
||||
int i;
|
||||
int bisect_list = 0;
|
||||
int bisect_show_vars = 0;
|
||||
@ -374,7 +377,6 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
|
||||
git_config(git_default_config, NULL);
|
||||
repo_init_revisions(the_repository, &revs, prefix);
|
||||
revs.abbrev = DEFAULT_ABBREV;
|
||||
revs.allow_exclude_promisor_objects_opt = 1;
|
||||
revs.commit_format = CMIT_FMT_UNSPECIFIED;
|
||||
revs.do_not_die_on_missing_tree = 1;
|
||||
|
||||
@ -406,7 +408,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
}
|
||||
|
||||
argc = setup_revisions(argc, argv, &revs, NULL);
|
||||
argc = setup_revisions(argc, argv, &revs, &s_r_opt);
|
||||
|
||||
memset(&info, 0, sizeof(info));
|
||||
info.revs = &revs;
|
||||
|
Reference in New Issue
Block a user