diff options
author | Matthew DeVore <matvore@google.com> | 2018-12-03 14:10:19 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-12-06 14:52:56 +0900 |
commit | bbcde41a70a7e0264c214896aac84d1ec3fdcbf6 (patch) | |
tree | a43a0775df8d2cc095b39ddd9cefd94c4d7c11dc /builtin/prune.c | |
parent | exclude-promisor-objects: declare when option is allowed (diff) | |
download | tgif-bbcde41a70a7e0264c214896aac84d1ec3fdcbf6.tar.xz |
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>
Diffstat (limited to 'builtin/prune.c')
-rw-r--r-- | builtin/prune.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/prune.c b/builtin/prune.c index a5c784749e..4394d01c93 100644 --- a/builtin/prune.c +++ b/builtin/prune.c @@ -118,7 +118,6 @@ int cmd_prune(int argc, const char **argv, const char *prefix) save_commit_buffer = 0; check_replace_refs = 0; ref_paranoia = 1; - revs.allow_exclude_promisor_objects_opt = 1; init_revisions(&revs, prefix); argc = parse_options(argc, argv, prefix, options, prune_usage, 0); |