diff options
author | Sun He <sunheehnus@gmail.com> | 2014-03-05 20:33:20 +0800 |
---|---|---|
committer | Sun He <sunheehnus@gmail.com> | 2014-03-05 20:33:20 +0800 |
commit | 8384a50a2171f57cc1b8158777b124d2022db94e (patch) | |
tree | d8c0a5bf736e3e93b2d1412421ed2b89a51bcc48 /examples | |
parent | 45d2e8dc4687b5da6e872fbfa960ea7cff3b3867 (diff) | |
download | libgit2-8384a50a2171f57cc1b8158777b124d2022db94e.tar.gz |
fix the output format of diff
Diffstat (limited to 'examples')
-rw-r--r-- | examples/diff.c | 4 |
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"); } |