Skip to content

RFC Series to correct xutils incomplete line handling.

Thell Fowler git 1 version In review

Get series with b4
b4 am alpine.DEB.2.00.0908191713070.2012@GWPortableVCS

Versions newest first

  1. v1 RFC Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Add supplemental test for trailing-whitespace on incomplete lines.t/t4015-diff-trailing-whitespace.sh+95 -00 replies
2/6Make xdl_hash_record_with_whitespace ignore eofxdiff/xutils.c+2 -20 replies
3/6Make diff -w handle trailing-spaces on incomplete lines.xdiff/xutils.c+4 -41 reply
4/6Make diff -b handle trailing-spaces on incomplete lines.xdiff/xutils.c+3 -30 replies
5/6Make diff --ignore-space-at-eol handle incomplete lines.xdiff/xutils.c+1 -10 replies
6/6Add diff tests for trailing-space on incomplete linest/t4015-diff-whitespace.sh+33 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6 RFC] Series to correct xutils incomplete line handling.

[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