Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: git-bisect die + gettext messages
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Sat, 21 May 2011 18:44:23 +0000
(18:44 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 21 May 2011 18:57:18 +0000
(11:57 -0700)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
c6649c9
)
diff --git
a/git-bisect.sh
b/git-bisect.sh
index 1b432b58f9a47bc9ec045a7b8d659adedbfddfbb..876fdd1f0bd802f1b8913dbe5f1dc5532096779d 100755
(executable)
--- a/
git-bisect.sh
+++ b/
git-bisect.sh
@@
-61,7
+61,7
@@
bisect_start() {
#
head=$(GIT_DIR="$GIT_DIR" git symbolic-ref -q HEAD) ||
head=$(GIT_DIR="$GIT_DIR" git rev-parse --verify HEAD) ||
#
head=$(GIT_DIR="$GIT_DIR" git symbolic-ref -q HEAD) ||
head=$(GIT_DIR="$GIT_DIR" git rev-parse --verify HEAD) ||
- die "
Bad HEAD - I need a HEAD
"
+ die "
$(gettext "Bad HEAD - I need a HEAD")
"
#
# Check if we are bisecting.
#
# Check if we are bisecting.
@@
-80,11
+80,11
@@
bisect_start() {
# cogito usage, and cogito users should understand
# it relates to cg-seek.
[ -s "$GIT_DIR/head-name" ] &&
# cogito usage, and cogito users should understand
# it relates to cg-seek.
[ -s "$GIT_DIR/head-name" ] &&
- die "
won't bisect on seeked tree
"
+ die "
$(gettext "won't bisect on seeked tree")
"
start_head="${head#refs/heads/}"
;;
*)
start_head="${head#refs/heads/}"
;;
*)
- die "
Bad HEAD - strange symbolic ref
"
+ die "
$(gettext "Bad HEAD - strange symbolic ref")
"
;;
esac
fi
;;
esac
fi
@@
-201,10
+201,10
@@
bisect_state() {
state=$1
case "$#,$state" in
0,*)
state=$1
case "$#,$state" in
0,*)
- die "
Please call 'bisect_state' with at least one argument.
" ;;
+ die "
$(gettext "Please call 'bisect_state' with at least one argument.")
" ;;
1,bad|1,good|1,skip)
rev=$(git rev-parse --verify HEAD) ||
1,bad|1,good|1,skip)
rev=$(git rev-parse --verify HEAD) ||
- die "
Bad rev input: HEAD
"
+ die "
$(gettext "Bad rev input: HEAD")
"
bisect_write "$state" "$rev"
check_expected_revs "$rev" ;;
2,bad|*,good|*,skip)
bisect_write "$state" "$rev"
check_expected_revs "$rev" ;;
2,bad|*,good|*,skip)
@@
-219,7
+219,7
@@
bisect_state() {
eval "$eval"
check_expected_revs "$@" ;;
*,bad)
eval "$eval"
check_expected_revs "$@" ;;
*,bad)
- die "
'git bisect bad' can take only one argument.
" ;;
+ die "
$(gettext "'git bisect bad' can take only one argument.")
" ;;
*)
usage ;;
esac
*)
usage ;;
esac
@@
-369,7
+369,7
@@
bisect_replay () {
good|bad|skip)
bisect_write "$command" "$rev" ;;
*)
good|bad|skip)
bisect_write "$command" "$rev" ;;
*)
- die "
?? what are you talking about?
" ;;
+ die "
$(gettext "?? what are you talking about?")
" ;;
esac
done <"$1"
bisect_auto_next
esac
done <"$1"
bisect_auto_next
@@
-434,7
+434,7
@@
bisect_run () {
}
bisect_log () {
}
bisect_log () {
- test -s "$GIT_DIR/BISECT_LOG" || die "
We are not bisecting.
"
+ test -s "$GIT_DIR/BISECT_LOG" || die "
$(gettext "We are not bisecting.")
"
cat "$GIT_DIR/BISECT_LOG"
}
cat "$GIT_DIR/BISECT_LOG"
}