summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSun He <sunheehnus@gmail.com>2014-03-05 20:33:20 +0800
committerSun He <sunheehnus@gmail.com>2014-03-05 20:33:20 +0800
commit8384a50a2171f57cc1b8158777b124d2022db94e (patch)
treed8c0a5bf736e3e93b2d1412421ed2b89a51bcc48 /examples
parent45d2e8dc4687b5da6e872fbfa960ea7cff3b3867 (diff)
downloadlibgit2-8384a50a2171f57cc1b8158777b124d2022db94e.tar.gz
fix the output format of diff
Diffstat (limited to 'examples')
-rw-r--r--examples/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/diff.c b/examples/diff.c
index 98480a76b..d87edcdaa 100644
--- a/examples/diff.c
+++ b/examples/diff.c
@@ -324,7 +324,7 @@ static void diff_print_shortstat(git_diff *diff)
if (ndeltas) {
- printf(", %ld ", (long)ndeltas);
+ printf(" %ld ", (long)ndeltas);
printf("%s", 1==ndeltas ? "file changed" : "files changed");
if(nadditions_sum) {
@@ -336,6 +336,6 @@ static void diff_print_shortstat(git_diff *diff)
printf(", %ld ",ndeletions_sum);
printf("%s", 1==ndeletions_sum ? "deletion(-)" : "deletions(-)");
}
+ printf("\n");
}
- printf("\n");
}