[PATCH 0/6 RFC] Series to correct xutils incomplete line handling.
- From
Thell Fowler <git@tbfowler.name>
- Date
- Aug 19, 2009, 23:05 UTC
- Message-ID
- <alpine.DEB.2.00.0908191713070.2012@GWPortableVCS>
- In-Reply-To
- <1249428804.2774.52.camel@GWPortableVCS>
[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