summaryrefslogtreecommitdiffstats
path: root/git-bisect.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-05-21 18:44:21 +0000
committerJunio C Hamano <gitster@pobox.com>2011-05-21 11:57:18 -0700
commitddd7a7c2220692ca3b25173b635218736c76b271 (patch)
tree543ebbb4b5317b5053dc71c7efce783088bee986 /git-bisect.sh
parentd0238a88f502962d96242e826c003a1e9bc68eb6 (diff)
downloadgit-ddd7a7c2220692ca3b25173b635218736c76b271.tar.gz
git-ddd7a7c2220692ca3b25173b635218736c76b271.tar.xz
i18n: git-bisect echo + gettext messages
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-bisect.sh')
-rwxr-xr-xgit-bisect.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/git-bisect.sh b/git-bisect.sh
index 4420b46a4..b29238db0 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -36,7 +36,10 @@ _x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
bisect_autostart() {
test -s "$GIT_DIR/BISECT_START" || {
- echo >&2 'You need to start by "git bisect start"'
+ (
+ gettext "You need to start by \"git bisect start\"" &&
+ echo
+ ) >&2
if test -t 0
then
echo >&2 -n 'Do you want me to do it for you [Y/n]? '
@@ -239,7 +242,10 @@ bisect_next_check() {
t,,good)
# have bad but not good. we could bisect although
# this is less optimum.
- echo >&2 'Warning: bisecting only with a bad commit.'
+ (
+ gettext "Warning: bisecting only with a bad commit." &&
+ echo
+ ) >&2
if test -t 0
then
printf >&2 'Are you sure [Y/n]? '
@@ -403,7 +409,10 @@ bisect_run () {
if sane_grep "first bad commit could be any of" "$GIT_DIR/BISECT_RUN" \
> /dev/null; then
- echo >&2 "bisect run cannot continue any more"
+ (
+ gettext "bisect run cannot continue any more" &&
+ echo
+ ) >&2
exit $res
fi