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>

Junio C Hamano committed Jul 18, 2025 at 16:58 UTC 9b5c002811e672fe994d72a4f0cc9325a0ecffa8
2 files changed +8 -8
bisect.h
-8
@@ -27,14 +27,6 @@ struct commit_list *filter_skipped(struct commit_list *list,
27 #define FIND_BISECTION_ALL (1u<<0)
28 #define FIND_BISECTION_FIRST_PARENT_ONLY (1u<<1)
29
30 -struct rev_list_info {
31 - struct rev_info *revs;
32 - int flags;
33 - int show_timestamp;
34 - int hdr_termination;
35 - const char *header_prefix;
36 -};
37 -
30 /*
31 * enum bisect_error represents the following return codes:
32 * BISECT_OK: success code. Internally, it means that next
builtin/rev-list.c
+8
@@ -28,6 +28,14 @@
28 #include "quote.h"
29 #include "strbuf.h"
30
31 +struct rev_list_info {
32 + struct rev_info *revs;
33 + int flags;
34 + int show_timestamp;
35 + int hdr_termination;
36 + const char *header_prefix;
37 +};
38 +
39 static const char rev_list_usage[] =
40 "git rev-list [<options>] <commit>... [--] [<path>...]\n"
41 "\n"