Skip to content

Commit 58e9773

Browse files
committed
Merge branch 'mg/status-porcelain-no-i18n'
"git status --porcelain" is supposed to give a stable output, but a few strings were left as translatable by mistake. * mg/status-porcelain-no-i18n: git-status: make porcelain more robust
2 parents 153e0d7 + b9e2bc5 commit 58e9773

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wt-status.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,12 +1730,14 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
17301730
return;
17311731
branch_name = s->branch;
17321732

1733+
#define LABEL(string) (s->no_gettext ? (string) : _(string))
1734+
17331735
if (s->is_initial)
1734-
color_fprintf(s->fp, header_color, _("Initial commit on "));
1736+
color_fprintf(s->fp, header_color, LABEL(N_("Initial commit on ")));
17351737

17361738
if (!strcmp(s->branch, "HEAD")) {
17371739
color_fprintf(s->fp, color(WT_STATUS_NOBRANCH, s), "%s",
1738-
_("HEAD (no branch)"));
1740+
LABEL(N_("HEAD (no branch)")));
17391741
goto conclude;
17401742
}
17411743

@@ -1760,8 +1762,6 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
17601762
if (!upstream_is_gone && !num_ours && !num_theirs)
17611763
goto conclude;
17621764

1763-
#define LABEL(string) (s->no_gettext ? (string) : _(string))
1764-
17651765
color_fprintf(s->fp, header_color, " [");
17661766
if (upstream_is_gone) {
17671767
color_fprintf(s->fp, header_color, LABEL(N_("gone")));

0 commit comments

Comments
 (0)