Skip to content

Commit 55a9fc8

Browse files
avargitster
authored andcommitted
i18n: git-bisect bisect_replay + $1 messages
Gettextize bisect_replay messages that use the $1 variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. Since I was doing that anyway I've changed all other uses of $1 variable to use the alias variable for clarity. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7d0c2d6 commit 55a9fc8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

git-bisect.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ bisect_clean_state() {
354354
}
355355

356356
bisect_replay () {
357-
test "$#" -eq 1 || die "No logfile given"
358-
test -r "$1" || die "cannot read $1 for replaying"
357+
file="$1"
358+
test "$#" -eq 1 || die "$(gettext "No logfile given")"
359+
test -r "$file" || die "$(eval_gettext "cannot read \$file for replaying")"
359360
bisect_reset
360361
while read git bisect command rev
361362
do
@@ -373,7 +374,7 @@ bisect_replay () {
373374
*)
374375
die "$(gettext "?? what are you talking about?")" ;;
375376
esac
376-
done <"$1"
377+
done <"$file"
377378
bisect_auto_next
378379
}
379380

0 commit comments

Comments
 (0)