diff options
author | Junio C Hamano <gitster@pobox.com> | 2025-08-01 11:27:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-08-01 11:27:10 -0700 |
commit | 6741b9b7c61b9d02fc1f0cb63bcfd6c9f83ba141 (patch) | |
tree | e825b04293ecafb5c2b5802cf3d3c5514488a380 | |
parent | e813a0200a7121b97fec535f0d0b460b0a33356c (diff) | |
parent | 9b5c002811e672fe994d72a4f0cc9325a0ecffa8 (diff) |
Merge branch 'jc/rev-list-info-cleanup'
Move structure definition from unrelated header file to where it
belongs.
* jc/rev-list-info-cleanup:
rev-list: make "struct rev_list_info" static to the only user
-rw-r--r-- | bisect.h | 8 | ||||
-rw-r--r-- | builtin/rev-list.c | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -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 4d0c460f18..1d084bcac3 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" |