@@ -1312,15 +1312,17 @@ static int bisect_run(struct bisect_terms *terms, int argc, const char **argv)
13121312 return res ;
13131313}
13141314
1315- static int cmd_bisect__reset (int argc , const char * * argv , const char * prefix UNUSED )
1315+ static int cmd_bisect__reset (int argc , const char * * argv , const char * prefix UNUSED ,
1316+ struct repository * repo UNUSED )
13161317{
13171318 if (argc > 1 )
13181319 return error (_ ("'%s' requires either no argument or a commit" ),
13191320 "git bisect reset" );
13201321 return bisect_reset (argc ? argv [0 ] : NULL );
13211322}
13221323
1323- static int cmd_bisect__terms (int argc , const char * * argv , const char * prefix UNUSED )
1324+ static int cmd_bisect__terms (int argc , const char * * argv , const char * prefix UNUSED ,
1325+ struct repository * repo UNUSED )
13241326{
13251327 int res ;
13261328 struct bisect_terms terms = { 0 };
@@ -1333,7 +1335,8 @@ static int cmd_bisect__terms(int argc, const char **argv, const char *prefix UNU
13331335 return res ;
13341336}
13351337
1336- static int cmd_bisect__start (int argc , const char * * argv , const char * prefix UNUSED )
1338+ static int cmd_bisect__start (int argc , const char * * argv , const char * prefix UNUSED ,
1339+ struct repository * repo UNUSED )
13371340{
13381341 int res ;
13391342 struct bisect_terms terms = { 0 };
@@ -1344,7 +1347,8 @@ static int cmd_bisect__start(int argc, const char **argv, const char *prefix UNU
13441347 return res ;
13451348}
13461349
1347- static int cmd_bisect__next (int argc , const char * * argv UNUSED , const char * prefix )
1350+ static int cmd_bisect__next (int argc , const char * * argv UNUSED , const char * prefix ,
1351+ struct repository * repo UNUSED )
13481352{
13491353 int res ;
13501354 struct bisect_terms terms = { 0 };
@@ -1358,12 +1362,15 @@ static int cmd_bisect__next(int argc, const char **argv UNUSED, const char *pref
13581362 return res ;
13591363}
13601364
1361- static int cmd_bisect__log (int argc UNUSED , const char * * argv UNUSED , const char * prefix UNUSED )
1365+ static int cmd_bisect__log (int argc UNUSED , const char * * argv UNUSED ,
1366+ const char * prefix UNUSED ,
1367+ struct repository * repo UNUSED )
13621368{
13631369 return bisect_log ();
13641370}
13651371
1366- static int cmd_bisect__replay (int argc , const char * * argv , const char * prefix UNUSED )
1372+ static int cmd_bisect__replay (int argc , const char * * argv , const char * prefix UNUSED ,
1373+ struct repository * repo UNUSED )
13671374{
13681375 int res ;
13691376 struct bisect_terms terms = { 0 };
@@ -1376,7 +1383,8 @@ static int cmd_bisect__replay(int argc, const char **argv, const char *prefix UN
13761383 return res ;
13771384}
13781385
1379- static int cmd_bisect__skip (int argc , const char * * argv , const char * prefix UNUSED )
1386+ static int cmd_bisect__skip (int argc , const char * * argv , const char * prefix UNUSED ,
1387+ struct repository * repo UNUSED )
13801388{
13811389 int res ;
13821390 struct bisect_terms terms = { 0 };
@@ -1388,7 +1396,8 @@ static int cmd_bisect__skip(int argc, const char **argv, const char *prefix UNUS
13881396 return res ;
13891397}
13901398
1391- static int cmd_bisect__visualize (int argc , const char * * argv , const char * prefix UNUSED )
1399+ static int cmd_bisect__visualize (int argc , const char * * argv , const char * prefix UNUSED ,
1400+ struct repository * repo UNUSED )
13921401{
13931402 int res ;
13941403 struct bisect_terms terms = { 0 };
@@ -1399,7 +1408,8 @@ static int cmd_bisect__visualize(int argc, const char **argv, const char *prefix
13991408 return res ;
14001409}
14011410
1402- static int cmd_bisect__run (int argc , const char * * argv , const char * prefix UNUSED )
1411+ static int cmd_bisect__run (int argc , const char * * argv , const char * prefix UNUSED ,
1412+ struct repository * repo UNUSED )
14031413{
14041414 int res ;
14051415 struct bisect_terms terms = { 0 };
@@ -1415,7 +1425,7 @@ static int cmd_bisect__run(int argc, const char **argv, const char *prefix UNUSE
14151425int cmd_bisect (int argc ,
14161426 const char * * argv ,
14171427 const char * prefix ,
1418- struct repository * repo UNUSED )
1428+ struct repository * repo )
14191429{
14201430 int res = 0 ;
14211431 parse_opt_subcommand_fn * fn = NULL ;
@@ -1451,7 +1461,7 @@ int cmd_bisect(int argc,
14511461 } else {
14521462 argc -- ;
14531463 argv ++ ;
1454- res = fn (argc , argv , prefix );
1464+ res = fn (argc , argv , prefix , repo );
14551465 }
14561466
14571467 return is_bisect_success (res ) ? 0 : - res ;
0 commit comments