summaryrefslogtreecommitdiff
path: root/builtin/rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-06 15:50:21 +0900
committerJunio C Hamano <gitster@pobox.com>2018-11-06 15:50:21 +0900
commita29b8bcf624006cf66abe129c01c932ec75df9f7 (patch)
treef0b2fe07b7913d36e9151fc995aa3a31e3ffae65 /builtin/rev-list.c
parent8ac6990b8712cb7c44dfc4ff8d9e99b5ec55b01d (diff)
parent669b1d2aaec73ba762bf566078308075886ca208 (diff)
downloadgit-a29b8bcf624006cf66abe129c01c932ec75df9f7.tar.gz
Merge branch 'md/exclude-promisor-objects-fix'
Operations on promisor objects make sense in the context of only a small subset of the commands that internally use the revisions machinery, but the "--exclude-promisor-objects" option were taken and led to nonsense results by commands like "log", to which it didn't make much sense. This has been corrected. * md/exclude-promisor-objects-fix: exclude-promisor-objects: declare when option is allowed Documentation/git-log.txt: do not show --exclude-promisor-objects
Diffstat (limited to 'builtin/rev-list.c')
-rw-r--r--builtin/rev-list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 5064d08e1b..2880ed37e3 100644
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
@@ -374,6 +374,7 @@ 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;