···11+#!/bin/sh
22+33+test_description='minimal diff algorithm'
44+55+. ./test-lib.sh
66+77+test_expect_success 'minimal diff should not mark changes between changed lines' '
88+ test_write_lines x x x x >pre &&
99+ test_write_lines x x x A B C D x E F G >post &&
1010+ test_expect_code 1 git diff --no-index --minimal pre post >diff &&
1111+ test_grep ! ^[+-]x diff
1212+'
1313+1414+test_done