14
14
#include "argv-array.h"
15
15
#include "commit-slab.h"
16
16
#include "commit-reach.h"
17
+ #include "object-store.h"
17
18
18
19
static struct oid_array good_revs ;
19
20
static struct oid_array skipped_revs ;
@@ -121,14 +122,14 @@ static inline int halfway(struct commit_list *p, int nr)
121
122
}
122
123
}
123
124
124
- #if !DEBUG_BISECT
125
- #define show_list (a ,b ,c ,d ) do { ; } while (0)
126
- #else
127
125
static void show_list (const char * debug , int counted , int nr ,
128
126
struct commit_list * list )
129
127
{
130
128
struct commit_list * p ;
131
129
130
+ if (!DEBUG_BISECT )
131
+ return ;
132
+
132
133
fprintf (stderr , "%s (%d/%d)\n" , debug , counted , nr );
133
134
134
135
for (p = list ; p ; p = p -> next ) {
@@ -146,7 +147,7 @@ static void show_list(const char *debug, int counted, int nr,
146
147
(flags & TREESAME ) ? ' ' : 'T' ,
147
148
(flags & UNINTERESTING ) ? 'U' : ' ' ,
148
149
(flags & COUNTED ) ? 'C' : ' ' );
149
- if (commit -> util )
150
+ if (* commit_weight_at ( & commit_weight , p -> item ) )
150
151
fprintf (stderr , "%3d" , weight (p ));
151
152
else
152
153
fprintf (stderr , "---" );
@@ -161,7 +162,6 @@ static void show_list(const char *debug, int counted, int nr,
161
162
fprintf (stderr , "\n" );
162
163
}
163
164
}
164
- #endif /* DEBUG_BISECT */
165
165
166
166
static struct commit_list * best_bisection (struct commit_list * list , int nr )
167
167
{
0 commit comments