Git fork
at reftables-rust 14 lines 344 B view raw
1#!/bin/sh 2 3test_description='minimal diff algorithm' 4 5. ./test-lib.sh 6 7test_expect_success 'minimal diff should not mark changes between changed lines' ' 8 test_write_lines x x x x >pre && 9 test_write_lines x x x A B C D x E F G >post && 10 test_expect_code 1 git diff --no-index --minimal pre post >diff && 11 test_grep ! ^[+-]x diff 12' 13 14test_done