Commit 8384a50a by Sun He

fix the output format of diff

parent 45d2e8dc
...@@ -324,7 +324,7 @@ static void diff_print_shortstat(git_diff *diff) ...@@ -324,7 +324,7 @@ static void diff_print_shortstat(git_diff *diff)
if (ndeltas) { if (ndeltas) {
printf(", %ld ", (long)ndeltas); printf(" %ld ", (long)ndeltas);
printf("%s", 1==ndeltas ? "file changed" : "files changed"); printf("%s", 1==ndeltas ? "file changed" : "files changed");
if(nadditions_sum) { if(nadditions_sum) {
...@@ -336,6 +336,6 @@ static void diff_print_shortstat(git_diff *diff) ...@@ -336,6 +336,6 @@ static void diff_print_shortstat(git_diff *diff)
printf(", %ld ",ndeletions_sum); printf(", %ld ",ndeletions_sum);
printf("%s", 1==ndeletions_sum ? "deletion(-)" : "deletions(-)"); printf("%s", 1==ndeletions_sum ? "deletion(-)" : "deletions(-)");
} }
}
printf("\n"); printf("\n");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment