diff-highlight: use flush() helper consistently
commit009a81ed978e5dc81767cf1be6dc4ea38c112801
authorJeff King <peff@peff.net>
Wed, 21 Mar 2018 05:56:37 +0000 (21 01:56 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Mar 2018 17:24:19 +0000 (21 10:24 -0700)
tree00e0f89d882adc99c11ae464648779b109eecc62
parentfbcf99e4acd666e1c4ef4304b53d96caaf0ae3f8
diff-highlight: use flush() helper consistently

The current flush() helper only shows the queued diff but
does not clear the queue. This is conceptually a bug, but it
works because we only call it once at the end of the
program.

Let's teach it to clear the queue, which will let us use it
in more places (one for now, but more in future patches).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/diff-highlight/DiffHighlight.pm