avoid trailing whitespace in zero-change diffstat lines
authorJeff King <peff@peff.net>
Sat, 14 Jun 2008 07:27:45 +0000 (03:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 14 Jun 2008 18:39:16 +0000 (11:39 -0700)
commit4d9b53591f64a11da0af4c2b8f11fd4730ce52dd
tree87ba9bcc306a62256c573ed0a61ab5c5fc54dcf0
parent44d86e910d61dab4f059d86705599bbb2747b10f
avoid trailing whitespace in zero-change diffstat lines

In some cases, we produce a diffstat line even though no
lines have changed (e.g., because of an exact rename). In
this case, there is no +/- "graph" after the number of
changed lines. However, we output the space separator
unconditionally, meaning that these lines contained a
trailing space character.

This isn't a huge problem, but in cleaning up the output we
are able to eliminate some trailing whitespace from a test
vector.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4016-diff-quote.sh