]> git.ipfire.org Git - thirdparty/git.git/commitdiff
rev-list: make "struct rev_list_info" static to the only user
authorJunio C Hamano <gitster@pobox.com>
Fri, 18 Jul 2025 23:58:03 +0000 (16:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Jul 2025 22:40:46 +0000 (15:40 -0700)
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>
bisect.h
builtin/rev-list.c

index 944439bfac729cf092d6c5962c9edff2321002e4..8621460f936ab131c05df279d8cdb486d0563615 100644 (file)
--- 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
index 0984b607bf052d7d248083f358f2c56f53c16c55..2bb6360ec19b89f12af605f83c81ee4807e15e8c 100644 (file)
 #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"