Skip to content

Commit 6741b9b

Browse files
committed
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
2 parents e813a02 + 9b5c002 commit 6741b9b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

bisect.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ struct commit_list *filter_skipped(struct commit_list *list,
2727
#define FIND_BISECTION_ALL (1u<<0)
2828
#define FIND_BISECTION_FIRST_PARENT_ONLY (1u<<1)
2929

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-
3830
/*
3931
* enum bisect_error represents the following return codes:
4032
* BISECT_OK: success code. Internally, it means that next

builtin/rev-list.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
#include "quote.h"
2929
#include "strbuf.h"
3030

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+
3139
static const char rev_list_usage[] =
3240
"git rev-list [<options>] <commit>... [--] [<path>...]\n"
3341
"\n"

0 commit comments

Comments
 (0)