@@ -45,10 +45,7 @@ bisect_head()
45
45
46
46
bisect_autostart () {
47
47
test -s " $GIT_DIR /BISECT_START" || {
48
- (
49
- gettext " You need to start by \" git bisect start\" " &&
50
- echo
51
- ) >&2
48
+ gettextln " You need to start by \" git bisect start\" " >&2
52
49
if test -t 0
53
50
then
54
51
# TRANSLATORS: Make sure to include [Y] and [n] in your
@@ -272,10 +269,7 @@ bisect_next_check() {
272
269
t,,good)
273
270
# have bad but not good. we could bisect although
274
271
# this is less optimum.
275
- (
276
- gettext " Warning: bisecting only with a bad commit." &&
277
- echo
278
- ) >&2
272
+ gettextln " Warning: bisecting only with a bad commit." >&2
279
273
if test -t 0
280
274
then
281
275
# TRANSLATORS: Make sure to include [Y] and [n] in your
@@ -291,18 +285,12 @@ bisect_next_check() {
291
285
292
286
if test -s " $GIT_DIR /BISECT_START"
293
287
then
294
- (
295
- gettext " You need to give me at least one good and one bad revisions.
296
- (You can use \" git bisect bad\" and \" git bisect good\" for that.)" &&
297
- echo
298
- ) >&2
288
+ gettextln " You need to give me at least one good and one bad revisions.
289
+ (You can use \" git bisect bad\" and \" git bisect good\" for that.)" >&2
299
290
else
300
- (
301
- gettext " You need to start by \" git bisect start\" .
291
+ gettextln " You need to start by \" git bisect start\" .
302
292
You then need to give me at least one good and one bad revisions.
303
- (You can use \" git bisect bad\" and \" git bisect good\" for that.)" &&
304
- echo
305
- ) >&2
293
+ (You can use \" git bisect bad\" and \" git bisect good\" for that.)" >&2
306
294
fi
307
295
exit 1 ;;
308
296
esac
@@ -355,7 +343,7 @@ bisect_visualize() {
355
343
356
344
bisect_reset () {
357
345
test -s " $GIT_DIR /BISECT_START" || {
358
- gettext " We are not bisecting." ; echo
346
+ gettextln " We are not bisecting."
359
347
return
360
348
}
361
349
case " $# " in
@@ -428,18 +416,15 @@ bisect_run () {
428
416
while true
429
417
do
430
418
command=" $@ "
431
- eval_gettext " running \$ command" ; echo
419
+ eval_gettextln " running \$ command"
432
420
" $@ "
433
421
res=$?
434
422
435
423
# Check for really bad run error.
436
424
if [ $res -lt 0 -o $res -ge 128 ]
437
425
then
438
- (
439
- eval_gettext " bisect run failed:
440
- exit code \$ res from '\$ command' is < 0 or >= 128" &&
441
- echo
442
- ) >&2
426
+ eval_gettextln " bisect run failed:
427
+ exit code \$ res from '\$ command' is < 0 or >= 128" >&2
443
428
exit $res
444
429
fi
445
430
@@ -464,26 +449,20 @@ exit code \$res from '\$command' is < 0 or >= 128" &&
464
449
if sane_grep " first bad commit could be any of" " $GIT_DIR /BISECT_RUN" \
465
450
> /dev/null
466
451
then
467
- (
468
- gettext " bisect run cannot continue any more" &&
469
- echo
470
- ) >&2
452
+ gettextln " bisect run cannot continue any more" >&2
471
453
exit $res
472
454
fi
473
455
474
456
if [ $res -ne 0 ]
475
457
then
476
- (
477
- eval_gettext " bisect run failed:
478
- 'bisect_state \$ state' exited with error code \$ res" &&
479
- echo
480
- ) >&2
458
+ eval_gettextln " bisect run failed:
459
+ 'bisect_state \$ state' exited with error code \$ res" >&2
481
460
exit $res
482
461
fi
483
462
484
463
if sane_grep " is the first bad commit" " $GIT_DIR /BISECT_RUN" > /dev/null
485
464
then
486
- gettext " bisect run success" ; echo
465
+ gettextln " bisect run success"
487
466
exit 0;
488
467
fi
489
468
0 commit comments