[PATCH 0/5] fix "diff --color-moved --ignore-space-at-eol"
- From
Jeff King <peff@peff.net>
- Date
- Oct 19, 2017, 20:23 UTC
- Message-ID
- <20171019202326.grovyfsragl2d7xx@sigill.intra.peff.net>
- In-Reply-To
- <20171019054246.jii62lq2druohbpo@sigill.intra.peff.net>
On Thu, Oct 19, 2017 at 01:42:46AM -0400, Jeff King wrote:
> It's late here, so I'll wait for comments from Stefan and then try to > wrap it up with a commit message and test tomorrow.
Here it is.
The fix is in patch 4. The earlier ones are just beefing up the test coverage, and the last one is a minor cleanup we can do on top.
[1/5]: t4015: refactor --color-moved whitespace test [2/5]: t4015: check "negative" case for "-w --color-moved" [3/5]: t4015: test the output of "diff --color-moved -b" [4/5]: diff: fix whitespace-skipping with --color-moved [5/5]: diff: handle NULs in get_string_hash()
diff.c | 17 ++-- t/t4015-diff-whitespace.sh | 213 +++++++++++++++++++++++++++++++++++++-------- 2 files changed, 188 insertions(+), 42 deletions(-)
-Peff