Skip to content

improvements for trailing-space processing on incomplete lines

Thell Fowler git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Add supplemental test for trailing-whitespace on incomplete linest/t4015-diff-trailing-whitespace.sh+95 -00 replies
2/6xutils: fix hash with whitespace on incomplete linexdiff/xutils.c+2 -22 replies
3/6xutils: fix ignore-all-space on incomplete linexdiff/xutils.c+5 -339 replies
4/6xutils: fix ignore-space-change on incomplete linexdiff/xutils.c+18 -70 replies
5/6xutils: fix ignore-space-at-eol on incomplete linexdiff/xutils.c+1 -10 replies
6/6t4015: add tests for trailing-space on incomplete linet/t4015-diff-whitespace.sh+33 -00 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchNicolas SebrechtThell Fowler
1/6
2/6
3/6T-b T-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH-v2/RFC 0/6] improvements for trailing-space processing on incomplete lines

These patches are directly aimed at making it possible to validate the results of git apply --whitespace=fix which is currently not possible in files with incomplete lines in various situations (demonstrated in the test in PATCH 1).

The goal is to be able to validate the application of a patch generated from a dirty whitespace source to a clean target.

        D2  C2
        | \/ |
        | /\ |
        D1  C1

where D1..D2, C1..C2, C1..D2, D1..C2 should all yield the same patch-id when passed a diff ignoring the applicable whitespace changes.

Applying these patches does nothing to fix the case of differences when apply --whitespace=fix limits new blank lines at eof as can happen when foo\r\n\r\n\r\n is fixed to foo\n\n.

Thell Fowler (6):
Add supplemental test for trailing-whitespace on incomplete lines
xutils: fix hash with whitespace on incomplete line
xutils: fix ignore-all-space on incomplete line
xutils: fix ignore-space-change on incomplete line
xutils: fix ignore-space-at-eol on incomplete line
t4015: add tests for trailing-space on incomplete line

 t/t4015-diff-trailing-whitespace.sh |   95 +++++++++++++++++++++++++++++++++++
 t/t4015-diff-whitespace.sh          |   33 ++++++++++++
 xdiff/xutils.c                      |   39 ++++++++++-----
 3 files changed, 154 insertions(+), 13 deletions(-)
 create mode 100755 t/t4015-diff-trailing-whitespace.sh