Skip to content

Commit 9570fc1

Browse files
avargitster
authored andcommitted
i18n: git-bisect die + gettext messages
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent c6649c9 commit 9570fc1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

git-bisect.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ bisect_start() {
6161
#
6262
head=$(GIT_DIR="$GIT_DIR" git symbolic-ref -q HEAD) ||
6363
head=$(GIT_DIR="$GIT_DIR" git rev-parse --verify HEAD) ||
64-
die "Bad HEAD - I need a HEAD"
64+
die "$(gettext "Bad HEAD - I need a HEAD")"
6565

6666
#
6767
# Check if we are bisecting.
@@ -80,11 +80,11 @@ bisect_start() {
8080
# cogito usage, and cogito users should understand
8181
# it relates to cg-seek.
8282
[ -s "$GIT_DIR/head-name" ] &&
83-
die "won't bisect on seeked tree"
83+
die "$(gettext "won't bisect on seeked tree")"
8484
start_head="${head#refs/heads/}"
8585
;;
8686
*)
87-
die "Bad HEAD - strange symbolic ref"
87+
die "$(gettext "Bad HEAD - strange symbolic ref")"
8888
;;
8989
esac
9090
fi
@@ -201,10 +201,10 @@ bisect_state() {
201201
state=$1
202202
case "$#,$state" in
203203
0,*)
204-
die "Please call 'bisect_state' with at least one argument." ;;
204+
die "$(gettext "Please call 'bisect_state' with at least one argument.")" ;;
205205
1,bad|1,good|1,skip)
206206
rev=$(git rev-parse --verify HEAD) ||
207-
die "Bad rev input: HEAD"
207+
die "$(gettext "Bad rev input: HEAD")"
208208
bisect_write "$state" "$rev"
209209
check_expected_revs "$rev" ;;
210210
2,bad|*,good|*,skip)
@@ -219,7 +219,7 @@ bisect_state() {
219219
eval "$eval"
220220
check_expected_revs "$@" ;;
221221
*,bad)
222-
die "'git bisect bad' can take only one argument." ;;
222+
die "$(gettext "'git bisect bad' can take only one argument.")" ;;
223223
*)
224224
usage ;;
225225
esac
@@ -369,7 +369,7 @@ bisect_replay () {
369369
good|bad|skip)
370370
bisect_write "$command" "$rev" ;;
371371
*)
372-
die "?? what are you talking about?" ;;
372+
die "$(gettext "?? what are you talking about?")" ;;
373373
esac
374374
done <"$1"
375375
bisect_auto_next
@@ -434,7 +434,7 @@ bisect_run () {
434434
}
435435

436436
bisect_log () {
437-
test -s "$GIT_DIR/BISECT_LOG" || die "We are not bisecting."
437+
test -s "$GIT_DIR/BISECT_LOG" || die "$(gettext "We are not bisecting.")"
438438
cat "$GIT_DIR/BISECT_LOG"
439439
}
440440

0 commit comments

Comments
 (0)