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:
@ -3084,14 +3084,16 @@ static void record_recent_commit(struct commit *commit, void *data)
|
||||
static void get_object_list(int ac, const char **av)
|
||||
{
|
||||
struct rev_info revs;
|
||||
struct setup_revision_opt s_r_opt = {
|
||||
.allow_exclude_promisor_objects = 1,
|
||||
};
|
||||
char line[1000];
|
||||
int flags = 0;
|
||||
int save_warning;
|
||||
|
||||
repo_init_revisions(the_repository, &revs, NULL);
|
||||
save_commit_buffer = 0;
|
||||
revs.allow_exclude_promisor_objects_opt = 1;
|
||||
setup_revisions(ac, av, &revs, NULL);
|
||||
setup_revisions(ac, av, &revs, &s_r_opt);
|
||||
|
||||
/* make sure shallows are read */
|
||||
is_repository_shallow(the_repository);
|
||||
|
||||
Reference in New Issue
Block a user