Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew DeVore <matvore@google.com>2018-12-04 01:10:19 +0300
committerJunio C Hamano <gitster@pobox.com>2018-12-06 08:52:56 +0300
commitbbcde41a70a7e0264c214896aac84d1ec3fdcbf6 (patch)
treea43a0775df8d2cc095b39ddd9cefd94c4d7c11dc /revision.h
parent669b1d2aaec73ba762bf566078308075886ca208 (diff)
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 'revision.h')
-rw-r--r--revision.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/revision.h b/revision.h
index e892a40cd9..8b81ae3342 100644
--- a/revision.h
+++ b/revision.h
@@ -124,7 +124,6 @@ struct rev_info {
tree_blobs_in_commit_order:1,
/* for internal use only */
- allow_exclude_promisor_objects_opt:1,
exclude_promisor_objects:1;
/* Diff flags */
@@ -245,7 +244,8 @@ struct setup_revision_opt {
const char *def;
void (*tweak)(struct rev_info *, struct setup_revision_opt *);
const char *submodule;
- int assume_dashdash;
+ unsigned int assume_dashdash:1,
+ allow_exclude_promisor_objects:1;
unsigned revarg_opt;
};