3 test_description
='diff order'
10 echo "$1" >c
/Makefile
&&
12 git add a.h b.c c
/Makefile d.txt
&&
16 test_expect_success
'setup' '
21 cat >order_file_1 <<-\EOF &&
27 cat >order_file_2 <<-\EOF &&
33 cat >expect_none <<-\EOF &&
40 cat >expect_1 <<-\EOF &&
55 test_expect_success
"no order (=tree object order)" '
56 git diff --name-only HEAD^..HEAD >actual &&
57 test_cmp expect_none actual
62 test_expect_success
"orderfile using option ($i)" '
63 git diff -Oorder_file_$i --name-only HEAD^..HEAD >actual &&
64 test_cmp expect_$i actual