mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
i18n: git-stash die + eval_gettext $* messages
Gettextize messages that used the $* variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. 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
33ceddcf24
commit
777b6f1373
10
git-stash.sh
10
git-stash.sh
|
@ -321,7 +321,10 @@ is_stash_like()
|
|||
}
|
||||
|
||||
assert_stash_like() {
|
||||
is_stash_like "$@" || die "'$*' is not a stash-like commit"
|
||||
is_stash_like "$@" || {
|
||||
args="$*"
|
||||
die "$(eval_gettext "'\$args' is not a stash-like commit")"
|
||||
}
|
||||
}
|
||||
|
||||
is_stash_ref() {
|
||||
|
@ -329,7 +332,10 @@ is_stash_ref() {
|
|||
}
|
||||
|
||||
assert_stash_ref() {
|
||||
is_stash_ref "$@" || die "'$*' is not a stash reference"
|
||||
is_stash_ref "$@" || {
|
||||
args="$*"
|
||||
die "$(eval_gettext "'\$args' is not a stash reference")"
|
||||
}
|
||||
}
|
||||
|
||||
apply_stash () {
|
||||
|
|
Loading…
Reference in a new issue