summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-06-22 14:33:02 -0700
committerJunio C Hamano <gitster@pobox.com>2008-06-22 14:33:02 -0700
commit6419cd556696a77e55ec21c260b36571e9e53c12 (patch)
tree271b4bb11310f5b14692aeb1975b8196f13a0327 /diff.c
parentdd503ed4d121e24888f3b20c0f353857b164b6a1 (diff)
parent9197240de82cb5bc45897860e0e93dc7c0b1a08f (diff)
downloadgit-6419cd556696a77e55ec21c260b36571e9e53c12.tar.gz
Merge branch 'jk/test'
* jk/test: enable whitespace checking of test scripts avoid trailing whitespace in zero-change diffstat lines avoid whitespace on empty line in automatic usage message mask necessary whitespace policy violations in test scripts fix whitespace violations in test scripts
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 5262490086..44e8790690 100644
--- a/diff.c
+++ b/diff.c
@@ -928,7 +928,8 @@ static void show_stats(struct diffstat_t* data, struct diff_options *options)
total = add + del;
}
show_name(options->file, prefix, name, len, reset, set);
- fprintf(options->file, "%5d ", added + deleted);
+ fprintf(options->file, "%5d%s", added + deleted,
+ added + deleted ? " " : "");
show_graph(options->file, '+', add, add_c, reset);
show_graph(options->file, '-', del, del_c, reset);
fprintf(options->file, "\n");