Skip to content

Commit 1c87654

Browse files
chriscoolgitster
authored andcommitted
rev-list: make "estimate_bisect_steps" non static
Because it will be used from "bisect.c" too. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f01f109 commit 1c87654

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bisect.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ extern int show_bisect_vars(struct rev_list_info *info, int reaches, int all);
2626

2727
extern int bisect_next_vars(const char *prefix);
2828

29+
extern int estimate_bisect_steps(int all);
30+
2931
#endif

builtin-rev-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static inline int exp2i(int n)
211211
*
212212
* and P(2^n + x) < 0.5 means 2^n < 3x
213213
*/
214-
static int estimate_bisect_steps(int all)
214+
int estimate_bisect_steps(int all)
215215
{
216216
int n, x, e;
217217

0 commit comments

Comments
 (0)