commit - d38823945b8782a695c7edc575f2e85a16b53d95
commit + 65dedee0a2cddb92e5184e594424e1d42420e8b0
blob - a20fdf567d2fb43a228a54708fee12c13f94796b
blob + e432b18620ea668642106a045956a1a96bef04bc
--- got/got.c
+++ got/got.c
printf(" %c %s%*c | %*d+ %*d-\n", cp->status, pe->path, pad,
' ', dsa->add_cols + 1, cp->add, dsa->rm_cols + 1, cp->rm);
}
- printf("\n%d file%s changed, %d insertions(+), %d deletions(-)\n\n",
- dsa->nfiles, dsa->nfiles > 1 ? "s" : "", dsa->ins, dsa->del);
+ printf("\n%d file%s changed, %d insertion%s(+), %d deletion%s(-)\n\n",
+ dsa->nfiles, dsa->nfiles > 1 ? "s" : "", dsa->ins,
+ dsa->ins != 1 ? "s" : "", dsa->del, dsa->del != 1 ? "s" : "");
if (fflush(stdout) != 0)
return got_error_from_errno("fflush");
blob - 3bf0246d75b75fc92ca14ca210759bab8aebcdc2
blob + 8766355007a2f2ff1724f384dc2bae3e21660b51
--- tog/tog.c
+++ tog/tog.c
goto done;
n = fprintf(outfile,
- "%d file%s changed, %d insertions(+), %d deletions(-)\n",
- dsa.nfiles, dsa.nfiles > 1 ? "s" : "", dsa.ins, dsa.del);
+ "%d file%s changed, %d insertion%s(+), %d deletion%s(-)\n",
+ dsa.nfiles, dsa.nfiles > 1 ? "s" : "", dsa.ins,
+ dsa.ins != 1 ? "s" : "", dsa.del, dsa.del != 1 ? "s" : "");
if (n < 0) {
err = got_error_from_errno("fprintf");
goto done;