consistency for messages for special-case in diffstat
1 files changed, 4 insertions(+), 4 deletions(-) | |||
---|---|---|---|
M | stagit.c | +4 | -4 |
1@@ -125,7 +125,7 @@ commitinfo_getstats(struct commitinfo *ci)
2
3 delta = git_patch_get_delta(patch);
4
5- /* check binary data */
6+ /* skip stats for binary data */
7 if (delta->flags & GIT_DIFF_FLAG_BINARY)
8 continue;
9
10@@ -453,7 +453,7 @@ printshowfile(FILE *fp, struct commitinfo *ci)
11 ci->ndeltas > 1000 ||
12 ci->addcount > 100000 ||
13 ci->delcount > 100000) {
14- fprintf(fp, "(diff is too large, output suppressed)");
15+ fputs("Diff is too large, output suppressed.\n", fp);
16 return;
17 }
18
19@@ -504,7 +504,7 @@ printshowfile(FILE *fp, struct commitinfo *ci)
20
21 /* check binary data */
22 if (delta->flags & GIT_DIFF_FLAG_BINARY) {
23- fputs("Binary files differ\n", fp);
24+ fputs("Binary files differ.\n", fp);
25 continue;
26 }
27
28@@ -733,7 +733,7 @@ writeblob(git_object *obj, const char *fpath, const char *filename, git_off_t fi
29 fputs("</p><hr/>", fp);
30
31 if (git_blob_is_binary((git_blob *)obj)) {
32- fputs("<p>Binary file</p>\n", fp);
33+ fputs("<p>Binary file.</p>\n", fp);
34 } else {
35 lc = writeblobhtml(fp, (git_blob *)obj);
36 if (ferror(fp))