diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-01-14 15:29:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-14 15:29:31 -0800 |
commit | 6e5be1f2d5bac42c28a126d382bf7b7bdcb9b7f3 (patch) | |
tree | 091504a48e8ed145c3a34fb3bac565f260175533 /builtin/rev-list.c | |
parent | ecdc7cbbac04241f1e5a90fb1fff13cff2ed7a82 (diff) | |
parent | bbcde41a70a7e0264c214896aac84d1ec3fdcbf6 (diff) | |
download | git-6e5be1f2d5bac42c28a126d382bf7b7bdcb9b7f3.tar.gz |
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
Diffstat (limited to 'builtin/rev-list.c')
-rw-r--r-- | builtin/rev-list.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index 2880ed37e3..51e9e1267e 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -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; |