summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-06-22 14:33:02 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-06-22 14:33:02 -0700
commit6419cd556696a77e55ec21c260b36571e9e53c12 (patch)
tree271b4bb11310f5b14692aeb1975b8196f13a0327 /diff.c
parentMerge branch 'pb/fast-export' (diff)
parentenable whitespace checking of test scripts (diff)
downloadtgif-6419cd556696a77e55ec21c260b36571e9e53c12.tar.xz
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");