From: Ævar Arnfjörð Bjarmason Date: Tue, 14 Sep 2010 11:40:25 +0000 (+0000) Subject: gettextize: git-stash die + eval_gettext $1 messages X-Git-Tag: ko-pu~10^2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fb2c5306a27fb32c8c71249d4d132da48392d8f2;p=git.git gettextize: git-stash die + eval_gettext $1 messages Gettextize a messages that used the $1 variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/git-stash.sh b/git-stash.sh index 9c9ca8da6..e9365d7bf 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -298,7 +298,10 @@ parse_flags_and_rev() ;; esac - REV=$(git rev-parse --quiet --symbolic --verify $1 2>/dev/null) || die "$1 is not valid reference" + REV=$(git rev-parse --quiet --symbolic --verify $1 2>/dev/null) || { + reference="$1" + die "$(eval_gettext "\$reference is not valid reference")" + } i_commit=$(git rev-parse --quiet --verify $REV^2 2>/dev/null) && set -- $(git rev-parse $REV $REV^1 $REV: $REV^1: $REV^2: 2>/dev/null) &&