From: Ævar Arnfjörð Bjarmason Date: Tue, 14 Sep 2010 12:17:01 +0000 (+0000) Subject: gettextize: git-bisect bisect_replay + $1 messages X-Git-Tag: ko-pu~10^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=765ffcc92358ceb3703f2ea9ede579b6ae7d38e5;p=git.git gettextize: 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 --- diff --git a/git-bisect.sh b/git-bisect.sh index 64c6b81da..f3162d61b 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -341,7 +341,8 @@ bisect_clean_state() { } bisect_replay () { - test -r "$1" || die "cannot read $1 for replaying" + file="$1" + test -r "$file" || die "$(eval_gettext "cannot read \$file for replaying")" bisect_reset while read git bisect command rev do @@ -359,7 +360,7 @@ bisect_replay () { *) die "$(gettext "?? what are you talking about?")" ;; esac - done <"$1" + done <"$file" bisect_auto_next }