diff: respect MIN_BLOCK_LENGTH for last block
authorJonathan Tan <jonathantanmy@google.com>
Wed, 16 Aug 2017 01:27:38 +0000 (18:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Aug 2017 18:44:00 +0000 (11:44 -0700)
commit09153277f8948d3ed8cb6712f135a9caeaa006f6
tree425c5f46dc7bcac0127829149ddf3978a809552e
parent23b65f9528a1fa19619d1dcb59932cc55075808c
diff: respect MIN_BLOCK_LENGTH for last block

Currently, MIN_BLOCK_LENGTH is only checked when diff encounters a line
that does not belong to the current block. In particular, this means
that MIN_BLOCK_LENGTH is not checked after all lines are encountered.

Perform that check.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4015-diff-whitespace.sh