summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-07-26 19:52:36 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-07-26 10:48:02 -0700
commit8212333012fa4e95373269526e4a702be7bb2d4b (patch)
treef371f7d010df609e8d7bab33dd55d5d10c9cd22a
parentUse correct grammar in diffstat summary line (diff)
downloadtgif-8212333012fa4e95373269526e4a702be7bb2d4b.tar.xz
i18n: leave \n out of translated diffstat
GETTEXT_POISON scrapes everything in translated strings, including \n. t4205.12 however needs this \n in matching the end result. Keep this \n out of translation to make t4205.12 happy. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 84780fd5e6..667756c952 100644
--- a/diff.c
+++ b/diff.c
@@ -1329,7 +1329,7 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
if (!files) {
assert(insertions == 0 && deletions == 0);
- return fputs(_(" 0 files changed\n"), fp);
+ return fprintf(fp, "%s\n", _(" 0 files changed"));
}
strbuf_addf(&sb,