提交 fe8165cd 编写于 作者: Æ Ævar Arnfjörð Bjarmason 提交者: Junio C Hamano

i18n: git-commit formatting messages

Signed-off-by: NÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 9c227655
......@@ -695,12 +695,12 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
char *ai_tmp, *ci_tmp;
if (in_merge)
status_printf_ln(s, GIT_COLOR_NORMAL,
"\n"
_("\n"
"It looks like you may be committing a MERGE.\n"
"If this is not correct, please remove the file\n"
" %s\n"
"and try again.\n"
"",
""),
git_path("MERGE_HEAD"));
fprintf(s->fp, "\n");
......@@ -725,15 +725,15 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
ci_tmp = cut_ident_timestamp_part(committer_ident.buf);
if (strcmp(author_ident->buf, committer_ident.buf))
status_printf_ln(s, GIT_COLOR_NORMAL,
"%s"
"Author: %s",
_("%s"
"Author: %s"),
ident_shown++ ? "" : "\n",
author_ident->buf);
if (!user_ident_sufficiently_given())
status_printf_ln(s, GIT_COLOR_NORMAL,
"%s"
"Committer: %s",
_("%s"
"Committer: %s"),
ident_shown++ ? "" : "\n",
committer_ident.buf);
......
......@@ -234,7 +234,7 @@ echo "#
# Author: $GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL>
#" >> expect
test_expect_success 'author different from committer' '
test_expect_success C_LOCALE_OUTPUT 'author different from committer' '
echo >>negative &&
git commit -e -m "sample"
......@@ -248,7 +248,7 @@ rm -f expect.tmp
echo "# Committer:
#" >> expect
test_expect_success 'committer is automatic' '
test_expect_success C_LOCALE_OUTPUT 'committer is automatic' '
echo >>negative &&
(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册