summaryrefslogtreecommitdiff
path: root/t/t4013
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-10-19 16:25:57 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-21 21:11:04 +0900
commit83de23cfea3730293c52072376b28d87b37d756b (patch)
tree1b60eb7fd7a455f8e37fa606f083cc657022c319 /t/t4013
parentt4015: refactor --color-moved whitespace test (diff)
downloadtgif-83de23cfea3730293c52072376b28d87b37d756b.tar.xz
t4015: check "negative" case for "-w --color-moved"
We test that lines with whitespace changes are not found by "--color-moved" by default, but are found if "-w" is added. Let's add one more twist: a line that has non-whitespace changes should not be marked as a pure move. This is perhaps an obvious case for us to get right (and we do), but as we add more whitespace tests, they will form a pattern of "make sure this case is a move and this other case is not". Note that we have to add a line to our moved block, since having a too-small block doesn't trigger the "moved" heuristics. And we also add a line of context to ensure that there's more context lines than moved lines (so the diff shows us moving the lines up, rather than moving the context down). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013')
0 files changed, 0 insertions, 0 deletions