i18n: git-am multi-line getttext $msg; echo

When we have multi-line `gettext $msg; echo' messages we can't
preserve the existing indenting because gettext(1) can't accept input
on stdin.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ævar Arnfjörð Bjarmason 2011-05-21 18:43:44 +00:00 committed by Junio C Hamano
parent 81dd2fe542
commit bd8643ae51

View File

@ -757,16 +757,16 @@ do
# working tree. # working tree.
resolved= resolved=
git diff-index --quiet --cached HEAD -- && { git diff-index --quiet --cached HEAD -- && {
echo "No changes - did you forget to use 'git add'?" gettext "No changes - did you forget to use 'git add'?
echo "If there is nothing left to stage, chances are that something else" If there is nothing left to stage, chances are that something else
echo "already introduced the same changes; you might want to skip this patch." already introduced the same changes; you might want to skip this patch."; echo
stop_here_user_resolve $this stop_here_user_resolve $this
} }
unmerged=$(git ls-files -u) unmerged=$(git ls-files -u)
if test -n "$unmerged" if test -n "$unmerged"
then then
echo "You still have unmerged paths in your index" gettext "You still have unmerged paths in your index
echo "did you forget to use 'git add'?" did you forget to use 'git add'?"; echo
stop_here_user_resolve $this stop_here_user_resolve $this
fi fi
apply_status=0 apply_status=0