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>
This commit is contained in:
parent
7d0c2d6fbf
commit
55a9fc8043
@ -354,8 +354,9 @@ bisect_clean_state() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bisect_replay () {
|
bisect_replay () {
|
||||||
test "$#" -eq 1 || die "No logfile given"
|
file="$1"
|
||||||
test -r "$1" || die "cannot read $1 for replaying"
|
test "$#" -eq 1 || die "$(gettext "No logfile given")"
|
||||||
|
test -r "$file" || die "$(eval_gettext "cannot read \$file for replaying")"
|
||||||
bisect_reset
|
bisect_reset
|
||||||
while read git bisect command rev
|
while read git bisect command rev
|
||||||
do
|
do
|
||||||
@ -373,7 +374,7 @@ bisect_replay () {
|
|||||||
*)
|
*)
|
||||||
die "$(gettext "?? what are you talking about?")" ;;
|
die "$(gettext "?? what are you talking about?")" ;;
|
||||||
esac
|
esac
|
||||||
done <"$1"
|
done <"$file"
|
||||||
bisect_auto_next
|
bisect_auto_next
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user