aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-18 16:58:03 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-21 15:40:46 -0700
commit9b5c002811e672fe994d72a4f0cc9325a0ecffa8 (patch)
tree28754c2b44c43e4d557a1dfb5da047399612760f
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77 (diff)
downloadgit-9b5c002811e672fe994d72a4f0cc9325a0ecffa8.tar.gz
rev-list: make "struct rev_list_info" static to the only user
The structure has nothing to do with what "git bisect" does; as nobody other than "git rev-list" implementation uses it, move it as a private data type to builtin/rev-list.c Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--bisect.h8
-rw-r--r--builtin/rev-list.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/bisect.h b/bisect.h
index 944439bfac..8621460f93 100644
--- a/bisect.h
+++ b/bisect.h
@@ -27,14 +27,6 @@ struct commit_list *filter_skipped(struct commit_list *list,
#define FIND_BISECTION_ALL (1u<<0)
#define FIND_BISECTION_FIRST_PARENT_ONLY (1u<<1)
-struct rev_list_info {
- struct rev_info *revs;
- int flags;
- int show_timestamp;
- int hdr_termination;
- const char *header_prefix;
-};
-
/*
* enum bisect_error represents the following return codes:
* BISECT_OK: success code. Internally, it means that next
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 0984b607bf..2bb6360ec1 100644
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
@@ -28,6 +28,14 @@
#include "quote.h"
#include "strbuf.h"
+struct rev_list_info {
+ struct rev_info *revs;
+ int flags;
+ int show_timestamp;
+ int hdr_termination;
+ const char *header_prefix;
+};
+
static const char rev_list_usage[] =
"git rev-list [<options>] <commit>... [--] [<path>...]\n"
"\n"