[PATCH 0/6 RFC] Series to correct xutils incomplete line handling.
From: Thell Fowler <hidden>
Date: 2016-06-15 22:47:17
[1/6] Add supplemental test for trailing-whitespace on incomplete lines. -- This patch is for illustrative purposes only. It exposes the current failures of git diff whitespace ignore options when dealing with trailing- spaces on incomplete lines. [2/6] through [5/6] Make xdl_hash_record_with_whitespace ignore eof Make diff -w handle trailing-spaces on incomplete lines. Make diff -b handle trailing-spaces on incomplete lines. Make diff --ignore-space-at-eol handle incomplete lines. -- These alter the record ptr loops to go to the end of the record and to treat the terminator as it would '\n'. [6/6] Add diff tests for trailing-space on incomplete lines -- Just the seven test cases that would identify future breakage. t/t4015-diff-trailing-whitespace.sh | 95 +++++++++++++++++++++++++++++++++++ t/t4015-diff-whitespace.sh | 33 ++++++++++++ xdiff/xutils.c | 20 ++++---- 3 files changed, 138 insertions(+), 10 deletions(-) create mode 100755 t/t4015-diff-trailing-whitespace.sh