Skip to content

Commit

Permalink
Merge branch 'nd/maint-diffstat-summary'
Browse files Browse the repository at this point in the history
Earlier we made the diffstat summary line that shows the number of
lines added/deleted localizable, but it was found irritating having
to see them in various languages on a list whose discussion language
is English.

The original had trivial thinko in reverting Q_(), which has been
fixed.

* nd/maint-diffstat-summary:
  Revert diffstat back to English
  • Loading branch information
gitster committed Sep 17, 2012
2 parents d6fb624 + 218adaa commit 9e40b6e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,11 +1398,11 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)

if (!files) {
assert(insertions == 0 && deletions == 0);
return fprintf(fp, "%s\n", _(" 0 files changed"));
return fprintf(fp, "%s\n", " 0 files changed");
}

strbuf_addf(&sb,
Q_(" %d file changed", " %d files changed", files),
(files == 1) ? " %d file changed" : " %d files changed",
files);

/*
Expand All @@ -1419,8 +1419,7 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
* do not translate it.
*/
strbuf_addf(&sb,
Q_(", %d insertion(+)", ", %d insertions(+)",
insertions),
(insertions == 1) ? ", %d insertion(+)" : ", %d insertions(+)",
insertions);
}

Expand All @@ -1430,8 +1429,7 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
* do not translate it.
*/
strbuf_addf(&sb,
Q_(", %d deletion(-)", ", %d deletions(-)",
deletions),
(deletions == 1) ? ", %d deletion(-)" : ", %d deletions(-)",
deletions);
}
strbuf_addch(&sb, '\n');
Expand Down

0 comments on commit 9e40b6e

Please sign in to comment.