зеркало из https://github.com/microsoft/git.git
i18n: git-status "Changes to be committed" message
Gettextize the "# Changes to be committed:" messages. Several tests explicitly checked for this message. Change them to skip under GETTEXT_POISON=YesPlease. Since these tests didn't check for the rest of the git-status(1) output this change has been split up from the "git-status basic messages" patch. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
98f5e24b90
Коммит
919a4ce0c1
|
@ -384,66 +384,66 @@ try_commit () {
|
|||
|
||||
try_commit_status_combo () {
|
||||
|
||||
test_expect_success 'commit' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit' '
|
||||
clear_config commit.status &&
|
||||
try_commit "" &&
|
||||
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit' '
|
||||
clear_config commit.status &&
|
||||
try_commit "" &&
|
||||
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit --status' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit --status' '
|
||||
clear_config commit.status &&
|
||||
try_commit --status &&
|
||||
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit --no-status' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit --no-status' '
|
||||
clear_config commit.status &&
|
||||
try_commit --no-status &&
|
||||
! grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit with commit.status = yes' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit with commit.status = yes' '
|
||||
clear_config commit.status &&
|
||||
git config commit.status yes &&
|
||||
try_commit "" &&
|
||||
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit with commit.status = no' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit with commit.status = no' '
|
||||
clear_config commit.status &&
|
||||
git config commit.status no &&
|
||||
try_commit "" &&
|
||||
! grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit --status with commit.status = yes' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit --status with commit.status = yes' '
|
||||
clear_config commit.status &&
|
||||
git config commit.status yes &&
|
||||
try_commit --status &&
|
||||
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit --no-status with commit.status = yes' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit --no-status with commit.status = yes' '
|
||||
clear_config commit.status &&
|
||||
git config commit.status yes &&
|
||||
try_commit --no-status &&
|
||||
! grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit --status with commit.status = no' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit --status with commit.status = no' '
|
||||
clear_config commit.status &&
|
||||
git config commit.status no &&
|
||||
try_commit --status &&
|
||||
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
|
||||
'
|
||||
|
||||
test_expect_success 'commit --no-status with commit.status = no' '
|
||||
test_expect_success C_LOCALE_OUTPUT 'commit --no-status with commit.status = no' '
|
||||
clear_config commit.status &&
|
||||
git config commit.status no &&
|
||||
try_commit --no-status &&
|
||||
|
|
|
@ -148,7 +148,7 @@ static void wt_status_print_cached_header(struct wt_status *s)
|
|||
{
|
||||
const char *c = color(WT_STATUS_HEADER, s);
|
||||
|
||||
status_printf_ln(s, c, "Changes to be committed:");
|
||||
status_printf_ln(s, c, _("Changes to be committed:"));
|
||||
if (!advice_status_hints)
|
||||
return;
|
||||
if (s->in_merge)
|
||||
|
|
Загрузка…
Ссылка в новой задаче