summaryrefslogtreecommitdiff
path: root/builtin/pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-06 06:50:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-06 06:50:21 (GMT)
commita29b8bcf624006cf66abe129c01c932ec75df9f7 (patch)
treef0b2fe07b7913d36e9151fc995aa3a31e3ffae65 /builtin/pack-objects.c
parent8ac6990b8712cb7c44dfc4ff8d9e99b5ec55b01d (diff)
parent669b1d2aaec73ba762bf566078308075886ca208 (diff)
downloadgit-a29b8bcf624006cf66abe129c01c932ec75df9f7.zip
git-a29b8bcf624006cf66abe129c01c932ec75df9f7.tar.gz
git-a29b8bcf624006cf66abe129c01c932ec75df9f7.tar.bz2
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/pack-objects.c')
-rw-r--r--builtin/pack-objects.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index e50c6cd..c99ee79 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -3107,6 +3107,7 @@ static void get_object_list(int ac, const char **av)
repo_init_revisions(the_repository, &revs, NULL);
save_commit_buffer = 0;
+ revs.allow_exclude_promisor_objects_opt = 1;
setup_revisions(ac, av, &revs, NULL);
/* make sure shallows are read */