diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-06-22 14:33:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-22 14:33:02 -0700 |
commit | 6419cd556696a77e55ec21c260b36571e9e53c12 (patch) | |
tree | 271b4bb11310f5b14692aeb1975b8196f13a0327 /diff.c | |
parent | dd503ed4d121e24888f3b20c0f353857b164b6a1 (diff) | |
parent | 9197240de82cb5bc45897860e0e93dc7c0b1a08f (diff) | |
download | git-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"); |